Vulnerability record · CVE-2025-32463 · published 30 June 2025
CVE-2025-32463: Sudo chroot local privilege escalation via untrusted nsswitch.conf
Sudo Project · Sudo
Sudo before 1.9.17p1 loads /etc/nsswitch.conf from a user-controlled directory when the --chroot option is used, allowing inclusion of functionality from an untrusted control sphere. A local user can therefore influence configuration read by a privileged process and escalate to root. The flaw affects sudo and multiple Linux distributions that ship it.
Description
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.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Automated analysis
critical priorityA locally reachable, low-complexity sudo flaw that yields root, is listed in CISA KEV with documented exploit references and a very high EPSS score.
What it is
Sudo before 1.9.17p1 loads /etc/nsswitch.conf from a user-controlled directory when the --chroot option is used, allowing inclusion of functionality from an untrusted control sphere. A local user can therefore influence configuration read by a privileged process and escalate to root. The flaw affects sudo and multiple Linux distributions that ship it.
Impact
An attacker with a local account gains full root privileges, giving complete control of the host including credential access, persistence and data modification.
Attack surface
Reached locally by running sudo with the --chroot option pointed at a directory the attacker controls; no authentication beyond a local user session and no user interaction are required, per the AV:L/PR:L/UI:N vector.
Exploitation
CVE-2025-32463 is listed in CISA KEV with a 2025-10-20 remediation due date, and two references are tagged Exploit; EPSS 30-day probability is 0.59417 (99th percentile). No ransomware campaign use is documented.
What to do
- Upgrade sudo to 1.9.17p1 or later, or apply the vendor update for your distribution (Ubuntu USN-7604-1, SUSE, Red Hat, Debian advisories).
- If patching is not immediately possible, restrict or remove use of sudo's --chroot option and limit sudo privileges to trusted users.
- Ensure directories passed to sudo --chroot are not writable by unprivileged users, and audit for attacker-controlled nsswitch.conf files.
- Track KEV remediation deadlines and verify patched sudo versions across all Linux hosts, including containers and build images.
Detection
- Alert on sudo executions using the --chroot option, especially with paths under user-writable directories such as /tmp, /home or /var/tmp.
- Monitor for creation or modification of nsswitch.conf files outside /etc and for unexpected root-owned processes spawned by sudo.
- Audit sudo version inventory to find hosts still running versions before 1.9.17p1.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Exploitation in the wild
CISA added CVE-2025-32463 to the Known Exploited Vulnerabilities catalog on 29 September 2025 as "Sudo Inclusion of Functionality from Untrusted Control Sphere Vulnerability". Required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable. Federal deadline 20 October 2025.
Affected products
8 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
Track CVE-2025-32463 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2025-32463), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.