Skip to content
OpenAdvisories
High · 7.2 CVE-2026-35368 EUVD-2026-25016GHSA-mh5c-xrmh-m794

uutils coreutils chroot Local Privilege Escalation and chroot Escape in via Name Service Switch (NSS) Injection

Published Apr 22, 2026 · Updated Apr 25, 2026 · 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.

Affected products

VendorProductAffectedFixed
Uutils coreutils — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rust-coreutils 0.9.0-1 —
Debian 13 rust-coreutils No fix yet —
Debian 12 rust-coreutils No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS rust-coreutils 0.10.0-1ubuntu2~26.04.1 USN-9041-1
Ubuntu 25.10 rust-coreutils No fix yet —
Ubuntu 24.04 LTS rust-coreutils No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling uutils 0.8.0-r2 —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io coreutils <= 0.8.0 — GHSA-mh5c-xrmh-m794

Advisories 1

References