Affected versions
Ubuntu24.04:LTS/rust-coreutils
- Affected versions
- * || =0.0.20-1 || =0.0.22-1 || =0.0.23-1 || =0.0.23-2 || =0.0.23-3 || =0.0.24-1 || =0.0.24-2
- Fixed version
- Not reported
Ubuntu25.10/rust-coreutils
- Affected versions
- * || =0.0.30-1 || =0.0.30-2 || =0.0.30-2ubuntu2 || =0.1.0-0ubuntu1 || =0.1.0+git20250711.2ba3a33-0ubuntu1 || =0.1.0+git20250711.2ba3a33-0ubuntu2 || =0.1.0+git20250711.2ba3a33-0ubuntu3 || =0.1.0+git20250711.2ba3a33-0ubuntu4 || =0.1.0+git20250801.cf79675-0ubuntu1 || =0.1.0+git20250813.4af2a84-0ubuntu2 || =0.1.0+git20250813.4af2a84-0ubuntu4 || =0.1.0+git20250813.4af2a84-0ubuntu6 || =0.1.0+git20250813.4af2a84-0ubuntu7 || =0.2.2-0ubuntu1 || =0.2.2-0ubuntu2 || =0.2.2-0ubuntu2.1
- Fixed version
- Not reported
Ubuntu26.04:LTS/rust-coreutils
- Affected versions
- <0.10.0-1ubuntu2~26.04.1 || =0.2.2-0ubuntu2 || =0.2.2-0ubuntu4 || =0.5.0-0ubuntu1 || =0.5.0-0ubuntu2 || =0.6.0-0ubuntu1 || =0.7.0-0ubuntu1 || =0.8.0-0ubuntu3
- Fixed version
- 0.10.0-1ubuntu2~26.04.1
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.

