CVE-2024-32019
High · 8.8CVSS
8.8
EPSS
1.2%
Published
Apr 12, 2024
CISA due date
—
Cloudanix analysis
A bug in the Netdata monitoring software lets someone who already has an account on the computer take over the entire machine with full administrator rights.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Privilege Gain
- Component
- Application
- Class
- Privilege Escalation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The ndsudo binary is installed SUID root and invokes external commands whose locations are resolved via the untrusted PATH environment variable, allowing a local attacker to substitute a malicious executable for any of the restricted commands it supports and thereby execute arbitrary code as root.
Why it matters to the business
Attackers with a local shell on a Netdata host can obtain root privileges, resulting in complete system takeover, data exfiltration, persistence, and lateral movement; the vulnerability has been publicly weaponized and affects a widely deployed open-source observability agent.
How an attack unfolds
An attacker with a local account creates a writable directory containing a malicious binary whose name matches one of the commands ndsudo is allowed to invoke, prepends that directory to PATH, then executes the ndsudo binary; because ndsudo is SUID root it runs the attacker-controlled binary with root privileges, achieving local privilege escalation. Public weaponization of the technique has been observed.
How to fix it
Upgrade Netdata to a build containing commit 59ee49c63212596c79cf7cdaf9b7e0167f1c1739 (versions 1.45.3 or 1.45.2-169) or later; after upgrade verify that the ndsudo binary no longer has the SUID bit set or that its search paths have been hardened to absolute locations.
How to confirm the fix worked
Confirm the installed Netdata version or commit hash matches or exceeds the fixed revision; run 'ls -l $(which ndsudo)' to verify the SUID bit is absent on the new binary; attempt a PATH manipulation test in a non-production environment to ensure the vulnerability is closed.
Typical attack path
- Obtain a local shell on a host running a vulnerable Netdata Agent
- Create a directory writable by the attacker and place a malicious executable matching an allowed command name inside it
- Export a PATH that places the attacker-controlled directory first
- Invoke the ndsudo binary (which is SUID root) with the chosen command name
- The malicious binary executes as root, completing privilege escalation
How to detect it
Search process execution logs and audit trails for invocations of ndsudo preceded by PATH environment changes or originating from non-standard directories; inspect shell history and sudo logs for sequences that prepend attacker-writable paths before calling ndsudo.
- /usr/libexec/netdata/ndsudo
- ndsudo
- PATH=.*:/tmp/.* ndsudo
- SUID ndsudo execution from non-root user
What your security team should do
- Immediately upgrade all Netdata Agents to a fixed build containing commit 59ee49c63212596c79cf7cdaf9b7e0167f1c1739
- Audit systems for the presence of the SUID ndsudo binary and remove the bit if the package cannot be upgraded promptly
- Add monitoring for unexpected executions of ndsudo or unusual PATH values in user sessions
- Review and restrict local accounts that can reach the ndsudo binary
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:20.04:LTS | netdata | 0 | No fix |
| Ubuntu:22.04:LTS | netdata | 0 | No fix |
| Ubuntu:24.04:LTS | netdata | 0 | No fix |
| Ubuntu:24.10 | netdata | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | netdata | 0 | No fix |
Related vulnerabilities
- CVE-2024-34251 An out-of-bound memory read vulnerability was discovered in Bytecode Alliance… Also affects netdata
- CVE-2024-34250 A heap buffer overflow vulnerability was discovered in Bytecode Alliance… Also affects netdata
- CVE-2022-1726 Bootstrap Tables XSS vulnerability with Table Export plug-in when exportOptions… Also affects netdata
- CVE-2026-0307 Multiple local privilege escalation vulnerabilities in the Palo Alto Networks… CWE-426
- CVE-2026-81192 `OpenTelemetry.Resources.Host` NuGet package, which provides OpenTelemetry resource… CWE-426
- CVE-2026-80159 Acrobat Reader is affected by an Untrusted Search Path vulnerability that could result in… CWE-426
- CVE-2026-84226 OpenVPN version 2.5.0 through 2.6.22 and 2.7_alpha1 through 2.7.6 on Windows allows local… CWE-426
- CVE-2026-82862 Hulumi versions before v1.3.2 resolve the threat-model helper script from an unsafe root… CWE-426