Exploit database

Vulnerability

CVE-2024-32019

ndsudo: local privilege escalation via untrusted search path

Vulnerability details

Score
8.8
Severity
high

CVSS 3.1 · GitHub_M

Vector string

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

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.

CVE Program

Exploit source choices

9 sources
Netdata ndsudo privilege escalation
MSF-linux--local--ndsudo_cve_2024_32019MetasploitLinux / remotePreferred

The `ndsudo` is a tool shipped with Netdata Agent. The version v1.45.0 and below contain vulnerability, which allows an attacker to gain privilege escalation using `ndsudo` binary. The vulnerability is untrusted search path, when searching for additional binary files, such as `nvme`. An attacker can create malicious binary with same name and add the directory of this binary into `$PATH` variable. The `ndsudo` will trust the first occurence of this binary and execute it.

2024-04-12ndsudo_cve_2024_32019.rb
azureadtrent/cve-2024-32019-poc
GH-a35cef1d0911e5ce74bf5b99c4630fb0GitHubUnofficial GitHub source

POC for netdata ndsudo vulnerability - CVE-2024-32019

2025-08-032 files · 21 stars
dollarboysushil/cve-2024-32019-netdata-ndsudo-path-vulnerability-privilege-escalation
GH-de650cf386de4d1905ea73371877a329GitHubUnofficial GitHub source

CVE-2024-32019 is a high-severity local privilege escalation vulnerability in Netdata (versions >= 1.44.0-60 < 1.45.3), caused by insecure use of the PATH variable in the ndsudo SUID binary, allowing attackers to execute arbitrary commands as root.

2025-08-053 files · 13 stars
alielkhatteb/cve-2024-32019-poc
GH-3815c47c9587b73fff5b8ac8b74faef8GitHubUnofficial GitHub source

this is a poc for the CVE-2025-24893

2025-08-032 files · 5 stars
x0da6h/poc-for-cve-2024-32019
GH-900b02ace07ec7c4e49ad55f5b97bedaGitHubUnofficial GitHub source

x0da6h/poc-for-cve-2024-32019 source repository

2025-08-253 files · 1 stars
80ottanta80/cve-2024-32019-poc
GH-837b63572f9f00a45bc274d7129cfe39GitHubUnofficial GitHub source

Bash script for Privilege Escalation via "ndsudo" (Netdata Local Exploit)

2025-11-014 files · 0 stars
ayub0x7/cve-2024-32019-poc
GH-e57f5d83e3f3832c38d70ec69300dc5aGitHubUnofficial GitHub source

ayub0x7/cve-2024-32019-poc source repository

2025-08-163 files · 0 stars