CVE-2024-32019 ndsudo: local privilege escalation via untrusted search path
Local attackers can escalate privileges to root by manipulating the PATH environment variable to hijack commands executed by the SUID ndsudo tool.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-32019?
CVE-2024-32019 is a high-severity vulnerability in netdata, published on 12 Apr 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Weakness: CWE-426
Which versions are affected by CVE-2024-32019?
How do I fix CVE-2024-32019?
No fix has been published for CVE-2024-32019 yet. Limit exposure of the affected software until one is available.
Is CVE-2024-32019 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-32019 exists.
Public exploit code: 1 Metasploit module and 12 proofs of concept on GitHub.
Sources
Also known as GHSA-pmhq-4cxq-wj93.