
Docker-based lab and proof-of-concept exploit for CVE-2025-32463, a sudo chroot local privilege escalation, featuring a vulnerable Ubuntu container and exploit script.
This repository contains a Docker-based lab and proof-of-concept exploit for CVE-2025-32463, a local privilege escalation vulnerability in sudo (versions 1.9.14 to 1.9.17).
This code is for educational and authorized testing purposes only. Do not use on systems you do not own or have explicit permission to test.
sudo 1.9.15p5labuser)sudo-chwoot.shgit clone https://github.com/adonijah01/cve-2025-32463-lab.git
cd cve-2025-32463-lab
docker build -t cve-2025-32463-lab .
docker run --rm -it --privileged cve-2025-32463-lab
Inside the container:
cd ~
./sudo-chwoot.sh
The exploit abuses the --chroot option in sudo and a crafted nsswitch.conf to load a malicious NSS module, resulting in root shell access.
Exploit concept and vulnerability details referenced from the official Sudo advisory, CVE database, and Stratascale's research.
Stay safe and use responsibly!