Vulnerability · Published Apr 22, 2026 · Assigned by canonical

CVE-2026-35368uutils coreutils chroot Local Privilege Escalation and chroot Escape in via Name Service Switch (NSS) Injection

High 7.2

In plain English

A high-severity security flaw in coreutils from Uutils. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 3% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.2High
Exploit odds (30 days)0.1%top 96.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

A vulnerability exists in the chroot utility of uutils coreutils when using the --userspec option. The utility resolves the user specification via getpwnam() after entering the chroot but before dropping root privileges. On glibc-based systems, this can trigger the Name Service Switch (NSS) to load shared libraries (e.g., libnss_*.so.2) from the new root directory. If the NEWROOT is writable by an attacker, they can inject a malicious NSS module to execute arbitrary code as root, facilitating a full container escape or privilege escalation.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12rust-coreutilsno fix listedDEBIAN-CVE-2026-35368
Debian:13rust-coreutilsno fix listedDEBIAN-CVE-2026-35368
Debian:14rust-coreutils0.9.0-1DEBIAN-CVE-2026-35368
Ubuntu:24.04:LTSrust-coreutilsno fix listedUBUNTU-CVE-2026-35368
Ubuntu:25.10rust-coreutilsno fix listedUBUNTU-CVE-2026-35368
Ubuntu:26.04:LTSrust-coreutilsno fix listedUBUNTU-CVE-2026-35368
Ubuntu:26.10rust-coreutilsno fix listedUBUNTU-CVE-2026-35368

Affected products (as reported)

VendorProductVersions
Uutils coreutils see references

Weakness: CWE-426 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

References