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-32463-Sudo-Chroot-Escape — This repository contains a Proof of Concept (PoC) for CVE-2025-32463, a vulnerability in sudo allowing a chroot escape to achieve local privilege escalation. | Kitploit
Tools/GitHubGitHub/d3ltaformation/cve-2025-32463-sudo-chroot-escape
Privilege EscalationVulnerability AnalysisExploitationPenetration TestingLearning & EducationPayload DevelopmentBinary Exploitation
GitHub
Share
d3ltaformation/cve-2025-32463-sudo-chroot-escape

CVE-2025-32463-Sudo-Chroot-Escape

This repository contains a Proof of Concept (PoC) for CVE-2025-32463, a vulnerability in sudo allowing a chroot escape to achieve local privilege escalation.

View Repository
311 year agoNot yet reviewed

CVE-2025-32463-Sudo-Chroot-Escape

Description

This repository contains a Python-based Proof of Concept (PoC) for CVE-2025-32463, a local privilege escalation vulnerability in the sudo versions 1.9.14 through 1.9.17. When a user has sudo privileges to run a command within a chroot environment (-R flag), an attacker can abuse the Name Service Switch (NSS) mechanism to load a malicious shared object. This allows the attacker to escape the chroot and execute arbitrary code as the root user.

This exploit was inspired by K1tt3h’s CVE-2025-32463-POC project.


Disclaimer

This script is provided for educational and authorized penetration testing purposes only. Unauthorized use of this script against systems you do not own or have explicit permission to test is illegal and unethical. The author assumes no responsibility for misuse or damage caused by this script.


About the Vulnerability

  • CVE ID: CVE-2025-32463
  • Component: Sudo (--chroot option)
  • Impact: Arbitrary code execution as root by tricking the dynamic linker into loading a malicious NSS (Name Service Switch) module.
  • Attack Vector: Local (requires sudo privileges with the chroot option enabled)

Features

  • Automatically creates and compiles the malicious C payload.
  • Uses a temporary directory for all artifacts, ensuring no files are left on the system.
  • Displays an animated status for each step of the exploit, confirming its completion.

Requirements

  • Python 3.x
  • gcc installed for compiling the payload.

Usage

git clone https://github.com/nelissandro/CVE-2025-32463-Sudo-Chroot-Escape.git
cd CVE-2025-32463-Sudo-Chroot-Escape
python3 exploit.py

How It Works

  1. The script writes a C payload to a file; this payload contains a __attribute__((constructor)) function designed to spawn a root shell the moment it's executed.
  2. It then creates a temporary directory to serve as a fake chroot environment, complete with a malicious /etc/nsswitch.conf file.
  3. The malicious config file is configured to trick the system's C library (glibc) into loading a custom library (libnss_privesc.so.2) to handle password lookups.
  4. The C payload is compiled into the libnss_privesc.so.2 shared object file and placed where the dynamic linker can find it.
  5. When sudo is executed with the -R flag, it enters the chroot, reads the malicious config, and loads our shared object, triggering the constructor and spawning a root shell.
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.

    972
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    666
  • 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.

    424
  • 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

    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.

    337
  • 6

    ARTEX

    baarai/artex

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

    331

Explore all tools

Browse our collection of tools

View all tools →