Sudo chroot option reads configuration from user directory
CVE-2025-32463Known exploitedHigh
Sudo before version 1.9.17p1 reads the /etc/nsswitch.conf file from a user-controlled directory when the --chroot option is used. A local attacker can exploit this by placing a malicious nsswitch.conf file in a directory they control, then using sudo's --chroot option to run arbitrary commands as root without needing to be listed in the sudoers file. The attacker needs local access to the system and the ability to use sudo with the --chroot option.
Plain English summary of the NVD and CISA text, checked by machine against both.
Scores and dates
- Added to KEV
- 29 Sept 2025
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Detail
Sudo. CISA 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.
Weakness: CWE-829 (opens in a new tab)
Affected versions
- sudo project sudo: from 1.9.14, before 1.9.17
- sudo project sudo: 1.9.17
- canonical ubuntu linux: 22.04
- canonical ubuntu linux: 24.04
- canonical ubuntu linux: 24.10
- canonical ubuntu linux: 25.04
- debian debian linux: 11.0
- debian debian linux: 12.0
- debian debian linux: 13.0
- opensuse leap: 15.6
- redhat enterprise linux: 10.0
- suse linux enterprise desktop: 15
- suse linux enterprise real time: 15.0
- suse linux enterprise server for sap: 12