uutils coreutils chroot Local Privilege Escalation and chroot Escape in via Name Service Switch (NSS) Injection
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-426.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Uutils | coreutils | — | — | No fix listed | CNA |
| — | coreutils (crates.io) | up to 0.8.0 | — | No fix listed | GHSA-mh5c-xrmh-m794 |
- coreutils VendorUutils Affected — Fixed in — No fix listed CNA
- coreutils (crates.io) Vendor— Affected up to 0.8.0 Fixed in — No fix listed GHSA-mh5c-xrmh-m794
Remediation
No fixed version listed by the sources yet.
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-35368
- 2026-10-03 Alias added: GHSA-mh5c-xrmh-m794
References
More Uutils Coreutils vulnerabilities
- TI-2026-27498 uutils coreutils touch Arbitrary File Truncation via TOCTOU Race Condition CVSS 3.1MEDIUM 6.3
- TI-2026-27488 uutils coreutils cp Unexpected Privileged Executable Creation with -p CVSS 3.1MEDIUM 6.6
- TI-2026-27502 uutils coreutils mv Arbitrary File Overwrite via Cross-Device TOCTOU Race Condition CVSS 3.1MEDIUM 6.3
- TI-2026-27493 uutils coreutils install Arbitrary File Overwrite via Symlink TOCTOU Race CVSS 3.1MEDIUM 6.3
- TI-2026-27511 uutils coreutils ln Local Denial of Service via Improper Handling of Non-UTF-8 Filenames CVSS 3.1MEDIUM 5.5
- TI-2026-27486 uutils coreutils sort Local Denial of Service via Forced UTF-8 Parsing CVSS 3.1MEDIUM 5.5
Sources
- CVE-2026-35368 · CVE Program
- CVE-2026-35368 · NVD
- FIRST EPSS
- GHSA-mh5c-xrmh-m794 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-35368 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences