Local privilege escalation via untrusted search path
Published Apr 12, 2024 · Updated Sep 6, 2024
Untrusted search path handling in Netdata Agent 1.45.0 through 1.45.2 allows local users to execute arbitrary programs with root permissions. The root-owned SUID ndsudo helper searches the caller-supplied PATH for allowlisted command names and executes the first match with root permissions. Any local account permitted to run ndsudo can supply a writable search directory; releases 1.44.0-60 through 1.45.0-168 are also affected.
Summary
What happened
Untrusted search path handling in Netdata Agent 1.45.0 through 1.45.2 allows local users to execute arbitrary programs with root permissions. The root-owned SUID ndsudo helper searches the caller-supplied PATH for allowlisted command names and executes the first match with root permissions. Any local account permitted to run ndsudo can supply a writable search directory; releases 1.44.0-60 through 1.45.0-168 are also affected.
The record
- CVE
- CVE-2024-32019
- Published
- Apr 12, 2024
- Updated
- Sep 6, 2024
- Vendor
- Netdata
- Product
- Netdata Agent
- Classifications
- CWE-426, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Apr 12, 2024CVE publishedPublication date reported by the CVE source.
- Sep 6, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>= 1.44.0-60, < 1.45.0-169
- Affected versionversion=1.44.0-60 <1.45.0-169
- Affected versionversion=>= 1.45.0, < 1.45.3
- Affected versionversion=1.45.0 <1.45.3
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
- GitHub advisory ndsudo PATH-hijack proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo