Bug 1222859 (CVE-2024-32019) - VUL-0: CVE-2024-32019: netdata: local privilege escalation and command execution via untrusted search path
Summary: VUL-0: CVE-2024-32019: netdata: local privilege escalation and command execut...
Status: RESOLVED FIXED
Alias: CVE-2024-32019
Product: openSUSE Distribution
Classification: openSUSE
Component: Security (show other bugs)
Version: Leap 15.6
Hardware: Other Other
: P5 - None : Major (vote)
Target Milestone: ---
Assignee: Mia Herkt
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/401694/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-32019:8.8:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-15 16:34 UTC by SMASH SMASH
Modified: 2024-04-15 16:39 UTC (History)
1 user (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-04-15 16:34:15 UTC
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.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-32019
https://www.cve.org/CVERecord?id=CVE-2024-32019
https://github.com/netdata/netdata/pull/17377
https://github.com/netdata/netdata/security/advisories/GHSA-pmhq-4cxq-wj93
https://bugzilla.redhat.com/show_bug.cgi?id=2274984
Comment 1 Camila Camargo de Matos 2024-04-15 16:39:02 UTC
As per the upstream advisory [0], affected versions include those lower than 1.45.3, meaning that this issue does not affect openSUSE:Factory, which is at version 1.45.3 as of 2024-04-15. openSUSE:Backports:SLE-15-SP5 also seems to not be affected, as there is no ndsudo reference present in the code.

[0] https://github.com/netdata/netdata/security/advisories/GHSA-pmhq-4cxq-wj93