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

Published Apr 22, 2026
·
Updated

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 Software

2 affected components
uutils uutils coreutils (chroot)
uutils Coreutils Rust

Event History

Apr 22, 2026
CVE Published
via MITRE·04:08 PM
Data Sourced
via MITRE·04:08 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-35368?

CVE-2026-35368 has been classified as a high severity vulnerability due to its potential for local privilege escalation.

2

How do I fix CVE-2026-35368?

To fix CVE-2026-35368, update to the latest version of uutils coreutils that addresses this vulnerability.

3

What systems are affected by CVE-2026-35368?

CVE-2026-35368 affects uutils coreutils specifically when using the chroot utility with the --userspec option.

4

What is the exploit vector for CVE-2026-35368?

The exploit vector for CVE-2026-35368 involves gaining elevated privileges within a chroot environment via a Name Service Switch (NSS) injection.

5

Are there workarounds for CVE-2026-35368 pending a fix?

As a workaround for CVE-2026-35368, avoid using the --userspec option in chroot until the vulnerability is patched.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203