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

- Severity: High 7.2 (CVSS:3.1, scored by canonical) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-22T16:08:48.965Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-mh5c-xrmh-m794
- Weaknesses: CWE-426
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: canonical

## 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.

(As written by CVE List.)

## Affected

- coreutils: no versions given
- coreutils (crates.io): up to 0.8.0
- uutils coreutils: no versions given

## Every score

- canonical: CVSS:3.1 7.2 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.8 High `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> (exploit, issue-tracking, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-35368> (advisory)
- <https://github.com/uutils/coreutils> (package)

## Sources

- CVE List: [CVE-2026-35368](https://www.cve.org/CVERecord?id=CVE-2026-35368), CVE Terms of Use, modified 2026-04-25
- GitHub Advisory Database: [GHSA-mh5c-xrmh-m794](https://github.com/advisories/GHSA-mh5c-xrmh-m794), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-35368](https://nvd.nist.gov/vuln/detail/CVE-2026-35368), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-35368 · Whole record: https://cve.day/CVE-2026-35368.json · Rebuilt by cve.day 2026-11-25T22:59:19.334Z
