# CVE-2025-32463 POC (Proof-of-concept) exploit
CVE-2025-32463 (CVSS 7.8) is a local privilege escalation vulnerability, introduced in sudo 1.9.14 and present through 1.9.17. The issue allows a local user to run arbitrary commands as root by using sudo’s -R / –chroot option to cause sudo to load attacker-controlled NSS modules from inside a user-supplied chroot environment.
## Quick vulnerability check
```bash
# Vulnerable sudo:
user@debian: sudo -R shaolin shaolin
sudo: shaolin: No such file or directory
# Patched sudo:
user@debian: sudo -R shaolin shaolin
[sudo] password for user:
sudo: you are not permitted to use the -R option with shaolin
```
## Usage
```bash
user@debian: git clone https://github.com/cybershaolin47/CVE-2025-32463_POC
user@debian: cd CVE-2025-32463_POC
user@debian: chmod +x privesc.sh
user@debian: ./privesc.sh
```
## GCC is required for the exploit!
<img width="425" height="264" alt="image" src="https://github.com/user-attachments/assets/b5114074-11e6-4db3-bebe-a417d7320933" />
## For further information check the following links:
- https://www.stratascale.com/vulnerability-alert-CVE-2025-32463-sudo-chroot
- https://socradar.io/cve-2025-32463-sudo-privilege-escalation-flaw-exploited-cisa/
- https://www.upwind.io/feed/cve%E2%80%912025%E2%80%9132463-critical-sudo-chroot-privilege-escalation-flaw
[4.0K] /data/pocs/c243360ad03c6f5c562973833f91ca0840eff426
├── [ 184] exp.c
├── [ 445] privesc.sh
└── [1.3K] README.md
1 directory, 3 files