CVE-2025-32462
NixOS vulnerability analysis and mitigation

Overview

Sudo before 1.9.17p1, when used with a sudoers file that specifies a host that is neither the current host nor ALL, allows listed users to execute commands on unintended machines. The vulnerability was discovered in June 2025 and affects sudo versions 1.8.8 through 1.9.17. This security flaw has been assigned CVE-2025-32462 and carries a CVSS base score of 2.8 (LOW) (MITRE, Sudo Advisory).

Technical details

The vulnerability stems from sudo's host (-h or --host) option, which was intended only for use with the list option (-l or --list) to display privileges on other hosts. Due to a bug, this option was not properly restricted and could be used when executing commands or editing files. The flaw allows users to bypass host-specific restrictions in the sudoers file by specifying a different host using the -h option, effectively making the hostname portion of sudoers rules irrelevant (Oligo Security, Sudo Advisory).

Impact

The vulnerability enables users with sudo access on one host to potentially execute commands on any other host where they have sudo privileges, even if the current host is not explicitly authorized. This primarily affects organizations using common sudoers files distributed across multiple machines or LDAP-based sudoers configurations (Openwall).

Exploitability

The vulnerability requires local access and some existing sudo privileges, but is relatively straightforward to exploit. An attacker must be listed in the sudoers file but does not need to have an entry for the current host. For example, if a user 'alice' has sudo privileges on host 'cerebus', they could execute 'sudo -h cerebus command' on any host, bypassing intended host restrictions (Openwall).

Mitigation and workarounds

The vulnerability has been fixed in sudo version 1.9.17p1. Organizations should update to this version or apply distribution-specific patches. For systems that cannot be immediately updated, administrators should review host-specific rules in sudoers files and consider converting them to group-based or tag-based controls where possible. The fix ensures the -h option is rejected unless used with the -l option (Oligo Security).

Community reactions

Major Linux distributions including Ubuntu, Debian, and Red Hat have released security advisories and patches for their respective versions. Security researchers have emphasized the importance of prompt patching, particularly for organizations using distributed sudoers configurations (SecPod).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

sudo: 1.9.13p3-1+deb12u2

Fixed

sid

sudo: 1.9.16p2-3

Fixed

trixie

sudo: 1.9.16p2-3

Fixed

RHEL / CentOS

Fixed

OpenShift

el8:openshift/ose-rhel-coreos-8-0:412.86.202507280202-0

Fixed

RHEL 8

:baseos:sudo-0:1.9.5p2-1.el8_10.1.src

Fixed

RHEL 9

:appstream:sudo-0:1.9.5p2-7.el9_0.5.src

Fixed

RHEL 10

sudo-0:1.9.15-8.p5.el10_0.2.src

Fixed

Alpine

Fixed

edge

sudo: 1.9.17_p1-r0

Fixed

v3.21

sudo: 1.9.17_p1-r0

Fixed

v3.22

sudo: 1.9.17_p1-r0

Fixed

v3.23

sudo: 1.9.17_p1-r0

Fixed

SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-91782LOW1.9
  • NixOS logoNixOS
  • gcc10-binutils
NoYesSep 15, 2026
CVE-2026-91781LOW1.9
  • NixOS logoNixOS
  • binutils
NoYesSep 15, 2026
CVE-2026-91780LOW1.9
  • NixOS logoNixOS
  • binutils
NoNoSep 15, 2026
CVE-2026-91779LOW1.9
  • NixOS logoNixOS
  • binutils
NoNoSep 15, 2026
CVE-2026-90831LOW1.9
  • NixOS logoNixOS
  • gcc-toolset-16-binutils.src
NoYesSep 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management