cbcvebase.
CVE-2025-32463
published 2025-06-30

CVE-2025-32463: Sudo before 1.9.17p1 allows local users to obtain root access because /etc/nsswitch.conf from a user-controlled directory is used with the --chroot option.

PriorityP184high7.8CVSS 3.1
AVLACLPRLUINSUCHIHAH
KEVITWEXPLOITInitial access
CISA Known Exploited Vulnerabilitydue 2025-10-20
Exploited in the wild
EPSS
55.50%
99.0th percentile
Sudo before 1.9.17p1 allows local users to obtain root access because /etc/nsswitch.conf from a user-controlled directory is used with the --chroot option.

Affected

23 ranges
VendorProductVersion rangeFixed in
canonicalubuntu_linux——
canonicalubuntu_linux——
canonicalubuntu_linux——
canonicalubuntu_linux——
debiandebian_linux——
debiandebian_linux——
debiandebian_linux——
debiansudo< sudo 1.9.16p2-3 (forky)sudo 1.9.16p2-3 (forky)
msrcazl3_sudo_1.9.17-1_on_azure_linux_3.0——
msrccbl2_sudo_1.9.17-1_on_cbl_mariner_2.0——
msrccm2_sudo_1.9.17-1_on_cbl_mariner_2.0——
opensuseleap——
redhatenterprise_linux——
sudo_projectsudo——
sudo_projectsudo>= 0 < 1.9.16p2-31.9.16p2-3
sudo_projectsudo>= 0 < 1.9.16p2-31.9.16p2-3
sudo_projectsudo>= 0 < 1.9.9-1ubuntu2.51.9.9-1ubuntu2.5
sudo_projectsudo>= 0 < 1.9.15p5-3ubuntu5.24.04.11.9.15p5-3ubuntu5.24.04.1
sudo_projectsudo>= 1.9.14 < 1.9.17p11.9.17p1
sudo_projectsudo>= 1.9.14 < 1.9.171.9.17
suselinux_enterprise_desktop——
suselinux_enterprise_real_time——
suselinux_enterprise_server_for_sap——

Detection & IOCsextracted from sources · hover to see the quote

commandsudo -n -R woot woot↗
path/etc/nsswitch.conf↗
path/tmp/sudowoot.stage.XXXXXX↗
filenamesudo-chwoot.sh↗
filenamewoot1337.c↗
filenamelibnss_/woot1337.so.2↗
pathwoot/etc/nsswitch.conf↗
sigma↗
detection: sudo process with -R or --chroot argument invoked by non-root user
  • →Monitor for sudo process invocations containing the -R or --chroot flag, especially by users not present in the sudoers file. ↗
  • →Alert on creation of /etc/nsswitch.conf inside user-writable or temporary directories (e.g. under /tmp), which is a prerequisite for exploitation. ↗
  • →Detect creation of shared libraries (*.so.*) in temporary or user-controlled directories, particularly those matching the libnss_ naming pattern, which are used to deliver the malicious NSS module. ↗
  • →Look for sudo error output matching the pattern 'woot.*no such file or directory' as a canary for exploit probing (used in the Nuclei detection template). ↗
  • →Detect calls to setreuid(0,0) / setregid(0,0) followed by chdir('/') and execl('/bin/bash') originating from a shared library constructor (__attribute__((constructor))), indicative of the PoC payload. ↗
  • →Audit systems running sudo versions 1.9.14 through 1.9.17 (inclusive); these are the exclusively affected versions. Patch to 1.9.17p1 or later. ↗
  • →Flag Metasploit module activity for the module path linux/local/sudo_chroot_cve_2025_32463 as an indicator of automated exploitation attempts. ↗
  • ·The vulnerability only affects sudo versions 1.9.14 through 1.9.17 inclusive; RHEL 9 and earlier (which ship older sudo versions) are NOT affected. ↗
  • ·Exploitation does NOT require the attacker to be listed in the sudoers file — the default sudo configuration is vulnerable, making this broadly exploitable on affected versions. ↗
  • ·The -R (--chroot) feature has been deprecated in 1.9.17p1 and will be removed entirely in a future sudo release; blocking or auditing its use is a viable compensating control. ↗

CVSS provenance

nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
osv8.8HIGH
vulncheck9.3CRITICAL
cisa7.8HIGH
vendor_debian9.3LOW
vendor_msrc9.3CRITICAL
vendor_redhat9.3CRITICAL
vendor_ubuntu2.8LOW
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.