CVE-2025-32463: sudo --chroot local root via user-controlled nsswitch.conf

Exploited in the wild High 7.8 EPSS 56.3%

Since sudo 1.9.14, the -R (--chroot) option resolves paths inside a user-chosen root directory while sudoers is still being evaluated, so a local user can plant an /etc/nsswitch.conf there and make sudo load an arbitrary shared library as root. Any local user can become root, even without sudoers rules. Fixed in sudo 1.9.17p1 (30 June 2025), which also deprecates --chroot; CISA added it to KEV on 29 September 2025.

What do these terms mean? CVE · CVSS score · exploited (KEV) · EPSS · backported fix · all terms

What to do now

  1. Check whether you run the affected software and which version (commands below).
  2. Install the fixed version for your system: see “Patch it” below.
  3. Nothing to restart.
  4. If you cannot patch today, apply the temporary mitigation below and patch as soon as possible.
  5. Because this flaw is being exploited, also check the server for signs of compromise.

Affected and fixed versions

Affected:

Fixed in:

Am I affected?

sudo -V | head -1

Patch it

Use the commands for your system. Distribution packages often keep an older version number with the fix backported, so compare with the fixed package versions in the table below, not only with the upstream version.

Debian
sudo apt update
sudo apt install --only-upgrade sudo
Ubuntu
sudo apt update
sudo apt install --only-upgrade sudo
RHEL, AlmaLinux, Rocky, Oracle
sudo dnf upgrade sudo
Built from source
# build sudo 1.9.17p1 or later from https://www.sudo.ws/

General update steps for every system are on the Linux and Unix & BSD pages; after updating, see which services to restart.

Fix status in Linux distributions

ReleasePackageStatusFixed version / advisory
Debian 12sudonot affected
Debian 13sudofixed1.9.16p2-3
Debian testingsudofixed1.9.16p2-3
Ubuntu 18.04 (ESM)sudonot affected
Ubuntu 20.04 (ESM)sudonot affected
Ubuntu 22.04sudonot affected
Ubuntu 24.04sudofixed1.9.15p5-3ubuntu5.24.04.1
Red Hat Enterprise Linux 10sudo-0:1.9.15-8.p5.el10_0.2fixedRHSA-2025:11537
Debian 13 (trixie)sudofixed1.9.16p2-3
Ubuntu 24.04 LTSsudofixed1.9.15p5-3ubuntu5.24.04.1 (USN-7604-1)
RHEL 10sudofixed1.9.15-8.p5.el10_0.2 (RHSA-2025:11537)

From the Debian security tracker, Ubuntu CVE tracker and Red Hat Security Data API, refreshed every few hours.

If you cannot patch yet

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.

This vulnerability could affect an open-source component, third-party library, protocol, or proprietary implementation that could be used by different products. For more information, please see: https://www.sudo.ws/security/advisories/chroot_bug/ ; https://nvd.nist.gov/vuln/detail/CVE-2025-32463

Sources

Page generated automatically from official sources on 2026-11-03 18:05 UTC and reviewed by an editor. Always confirm with your vendor's advisory.