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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | rust-coreutils | no fix listed | DEBIAN-CVE-2026-35368 |
| Debian:13 | rust-coreutils | no fix listed | DEBIAN-CVE-2026-35368 |
| Debian:14 | rust-coreutils | 0.9.0-1 | DEBIAN-CVE-2026-35368 |
| Ubuntu:24.04:LTS | rust-coreutils | no fix listed | UBUNTU-CVE-2026-35368 |
| Ubuntu:25.10 | rust-coreutils | no fix listed | UBUNTU-CVE-2026-35368 |
| Ubuntu:26.04:LTS | rust-coreutils | no fix listed | UBUNTU-CVE-2026-35368 |
| Ubuntu:26.10 | rust-coreutils | no fix listed | UBUNTU-CVE-2026-35368 |
Affected products (as reported)
Weakness: CWE-426 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/uutils/coreutils/issues/10327 issue-tracking