{"id":"CVE-2024-32019","published":"2024-04-12T20:33:18Z","modified":"2024-09-06T17:58:36Z","title":"ndsudo: local privilege escalation via untrusted search path","vendor":"netdata","product":"netdata","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01165,"percentile":0.68066,"provenance":"source"},"cwes":[{"id":"CWE-426","name":"Untrusted Search Path"}],"references":[{"url":"https://github.com/netdata/netdata/security/advisories/GHSA-pmhq-4cxq-wj93","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/netdata/netdata/pull/17377","tags":["x_refsource_MISC"]}],"priority":{"score":24.8,"factors":[{"name":"EPSS percentile","points":13.61},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.16}]},"exploitSources":{"pocGithub":{"count":11,"skipped":1,"earliest":"2025-08-03","earliestUrl":"https://github.com/AzureADTrent/CVE-2024-32019-POC","repos":[{"name":"AzureADTrent/CVE-2024-32019-POC","url":"https://github.com/AzureADTrent/CVE-2024-32019-POC","stars":21,"created":"2025-08-03"},{"name":"dollarboysushil/CVE-2024-32019-Netdata-ndsudo-PATH-Vulnerability-Privilege-Escalation","url":"https://github.com/dollarboysushil/CVE-2024-32019-Netdata-ndsudo-PATH-Vulnerability-Privilege-Escalation","stars":13,"created":"2025-08-05"},{"name":"AliElKhatteb/CVE-2024-32019-POC","url":"https://github.com/AliElKhatteb/CVE-2024-32019-POC","stars":5,"created":"2025-08-03"},{"name":"T1erno/CVE-2024-32019-Netdata-ndsudo-Privilege-Escalation-PoC","url":"https://github.com/T1erno/CVE-2024-32019-Netdata-ndsudo-Privilege-Escalation-PoC","stars":3,"created":"2025-09-11"},{"name":"x0da6h/POC-for-CVE-2024-32019","url":"https://github.com/x0da6h/POC-for-CVE-2024-32019","stars":1,"created":"2025-08-25"}]},"metasploit":[{"name":"Netdata ndsudo privilege escalation","module":"exploit/linux/local/ndsudo_cve_2024_32019","type":"exploit","disclosureDate":"2024-04-12","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/local/ndsudo_cve_2024_32019.rb"}],"first":{"date":"2024-04-12","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/local/ndsudo_cve_2024_32019.rb"},"provenance":"source"},"vendorSlug":"netdata","affectedVersions":[{"vendor":"netdata","product":"netdata","versions":[">= 1.45.0, < 1.45.3",">= 1.44.0-60, < 1.45.0-169"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2024-08-20T20:53:45.698496Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-29857","exploited":false,"provenance":"source"}}