CVE-2024-32019:
Netdata ndsudo
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.
Below are general examples of techniques, methods, and proof-of-concept approaches used to demonstrate this vulnerability in a controlled environment.
Transfer nvme to the target and do the following:
/tmp/fakebin/nvme
If everything is setup, exploit the target:
root
8.8
High risk
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Compexity
low
Privileges
low
Affected
>= v1.45.0, < v1.45.3, >= v1.44.0-60, < v1.45.0-169
Patched
v1.45.3, v1.45.0-169