High Severity CVE-2025-32463
Published: Jul 16, 2025

[GitHub] CVE-2025-32463

Privilege escalation
Type
N/A
CVSS Score
2
Views
Anonymous
Author

Description

Privilege escalation to root using sudo chroot, NO NEED for gcc installed.

# CVE-2025-32463 - No gcc required
Privilege escalation to root via sudo, with **NO NEED** for **gcc** to be installed on the target.

Discovered by [Rich Mirch](https://www.stratascale.com/team/rich-mirch).
## Affected Versions
- Vulnerable: sudo 1.9.14, 1.9.15, 1.9.16, 1.9.17
- Patched in: sudo 1.9.17p1 and later
- Legacy versions older than 1.9.14 are not affected, as they don't support the --chroot option.

---

## Exploit (gcc is NOT required)
<div align="center">
<a><img src="https://github.com/user-attachments/assets/0083dcfb-afd0-4eb0-bc0a-549c5d85c586" width="600px;" ></a>
</div>
<br>

```bash
# 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:
```bash
./mkall-dynamic.sh

# then run
./get_root.sh
```
But you will obviously need a compiler at this point.

---

## Disclaimer

- This code is for **educational and testing purposes only**.
- Use only on systems **you own or have explicit permission** to test.
- I am **not responsible** for misuse or damages.

## References
- [NVD - CVE-2025-32463](https://nvd.nist.gov/vuln/detail/CVE-2025-32463)
- [Stratascale - CVE-2025-32463 sudo chroot](https://www.stratascale.com/vulnerability-alert-CVE-2025-32463-sudo-chroot)


Community Rating
0

Login to rate this exploit

Quick Actions