
PoC for CVE-2025-32463: Local privilege escalation in sudo via --chroot. Exploits NSS module injection through crafted chroot environments. Designed for security researchers and lab-only environments.
PoC for CVE-2025-32463: Local privilege escalation in sudo via --chroot. Exploits NSS module injection through crafted chroot environments. Designed for security researchers and lab-only environments.
sudo --chrootA Python-based proof-of-concept exploit for CVE-2025-32463 — a local privilege escalation vulnerability in
sudo(v1.9.14 - v1.9.17).
This exploit leverages the insecure--chrootoption insudoand malicious NSS resolution to execute code asroot.
This code is provided strictly for educational and research purposes only.
Do NOT use on production systems or without explicit authorization.
You are solely responsible for complying with applicable laws and policies.
CVE-2025-32463 is a local privilege escalation flaw in sudo, introduced by its --chroot (-R) functionality.
If a user is allowed to invoke sudo with the -R flag, they can:
nsswitch.conflibnss_Xfiles.so.2sudo resolves user info — running code as rootgcc (for compiling the shared object payload)sudo binary (v1.9.14 ≤ version < v1.9.17p1)sudo allows the use of --chroot (e.g., via sudoers)Tested on:
sudo)git clone https://github.com/yourhandle/CVE-2025-32463-poc.git
cd CVE-2025-32463-poc
python3 exploit.py [-v]