UBUNTU-CVE-2026-35368: High severity ubuntu/rust-coreutils vulnerability

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

3 affected components
ubuntu/rust-coreutils*
ubuntu/rust-coreutils*
ubuntu/rust-coreutils*

Event History

Apr 22, 2026
CVE Published
via OSV·05:16 PM
Data Sourced
via OSV·05:16 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which deployments are realistically exposed?

Exposure requires use of the chroot utility with the --userspec option on a glibc-based system, where the specified new root directory is writable by an attacker. This can enable a full container escape or local privilege escalation.

2

What must an attacker be able to do to exploit this?

The attacker needs the ability to write into the NEWROOT directory and place a malicious NSS shared library there. They also need chroot to be invoked with --userspec, so that user resolution occurs after entering the new root while privileges are still root.

3

Is the default chroot behavior affected?

The described issue is specifically tied to use of the --userspec option. The provided information does not indicate that invocations without --userspec are affected.

4

What can be done if patching cannot happen immediately?

Avoid invoking chroot with --userspec when the new root may be attacker-writable. Restrict write access to directories used as NEWROOT so untrusted users cannot add NSS modules or other files to them.

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