Skip to main content
← All vulnerabilities
CVE-2024-32019

ndsudo: local privilege escalation via untrusted search path

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.45.3, 1.45.0-169
1 Metasploit module, 12 proofs of concept on GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

Netdata is an open source observability tool. In affected versions the `ndsudo` tool shipped with affected versions of the Netdata Agent allows an attacker to run arbitrary programs with root permissions. The `ndsudo` tool is packaged as a `root`-owned executable with the SUID bit set. It only runs a restricted set of external commands, but its search paths are supplied by the `PATH` environment variable. This allows an attacker to control where `ndsudo` looks for these commands, which may be a path the attacker has write access to. This may lead to local privilege escalation. This vulnerability has been addressed in versions 1.45.3 and 1.45.2-169. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • netdata netdata

    From 1.45.0 · fixed in 1.45.3; From 1.44.0-60 · fixed in 1.45.0-169

References 15

GitHub · netdata/netdata

GitHub · rapid7/metasploit-framework

GitHub · 80Ottanta80/CVE-2024-32019-PoC

GitHub · AliElKhatteb/CVE-2024-32019-POC

GitHub · AzureADTrent/CVE-2024-32019-POC

GitHub · C0deInBlack/CVE-2024-32019-poc

GitHub · T1erno/CVE-2024-32019-Netdata-ndsudo-Privilege-Escalation-PoC

GitHub · ayub0x7/cve-2024-32019-PoC

GitHub · dollarboysushil/CVE-2024-32019-Netdata-ndsudo-PATH-Vulnerability-Privilege-Escalation

GitHub · hexared/CVE-2024-32019_poc

GitHub · juanbelin/CVE-2024-32019-POC

GitHub · julichaan/CVE-2024-32019-ndsudo-local-privilege-escalation-NetData

GitHub · justjoeyking/CVE-2024-32019-ndsudo

GitHub · x0da6h/POC-for-CVE-2024-32019