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.
0.0.20-10.0.22-10.0.23-10.0.23-20.0.23-30.0.24-10.0.24-20.0.30-10.0.30-20.0.30-2ubuntu20.1.0+git20250711.2ba3a33-0ubuntu10.1.0+git20250711.2ba3a33-0ubuntu20.1.0+git20250711.2ba3a33-0ubuntu30.1.0+git20250711.2ba3a33-0ubuntu40.1.0+git20250801.cf79675-0ubuntu10.1.0+git20250813.4af2a84-0ubuntu20.1.0+git20250813.4af2a84-0ubuntu4+6 more0:0.10.0-1ubuntu2~26.04.1Exploitability
AV:LAC:HPR:LUI:NScope
S:CImpact
C:HI:HA:HCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H