Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 890865 (CVE-2023-22496, CVE-2023-22497) - <net-analyzer/netdata-1.37.0: multiple vulnerabilities
Summary: <net-analyzer/netdata-1.37.0: multiple vulnerabilities
Status: RESOLVED FIXED
Alias: CVE-2023-22496, CVE-2023-22497
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal trivial
Assignee: Gentoo Security
URL:
Whiteboard: ~2 [noglsa]
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-15 04:09 UTC by John Helmert III
Modified: 2024-01-05 12:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2023-01-15 04:09:04 UTC
CVE-2023-22496 (https://github.com/netdata/netdata/security/advisories/GHSA-xg38-3vmw-2978):

Netdata is an open source option for real-time infrastructure monitoring and troubleshooting. An attacker with the ability to establish a streaming connection can execute arbitrary commands on the targeted Netdata agent. When an alert is triggered, the function `health_alarm_execute` is called. This function performs different checks and then enqueues a command by calling `spawn_enq_cmd`. This command is populated with several arguments that are not sanitized. One of them is the `registry_hostname` of the node for which the alert is raised. By providing a specially crafted `registry_hostname` as part of the health data that is streamed to a Netdata (parent) agent, an attacker can execute arbitrary commands at the remote host as a side-effect of the raised alert. Note that the commands are executed as the user running the Netdata Agent. This user is usually named `netdata`. The ability to run arbitrary commands may allow an attacker to escalate privileges by escalating other vulnerabilities in the system, as that user. The problem has been fixed in: Netdata agent v1.37 (stable) and Netdata agent v1.36.0-409 (nightly). As a workaround, streaming is not enabled by default. If you have previously enabled this, it can be disabled. Limiting access to the port on the recipient Agent to trusted child connections may mitigate the impact of this vulnerability.

CVE-2023-22497 (https://github.com/netdata/netdata/security/advisories/GHSA-jx85-39cw-66f2):

Netdata is an open source option for real-time infrastructure monitoring and troubleshooting. Each Netdata Agent has an automatically generated MACHINE GUID. It is generated when the agent first starts and it is saved to disk, so that it will persist across restarts and reboots. Anyone who has access to a Netdata Agent has access to its MACHINE_GUID. Streaming is a feature that allows a Netdata Agent to act as parent for other Netdata Agents (children), offloading children from various functions (increased data retention, ML, health monitoring, etc) that can now be handled by the parent Agent. Configuration is done via `stream.conf`. On the parent side, users configure in `stream.conf` an API key (any random UUID can do) to provide common configuration for all children using this API key and per MACHINE GUID configuration to customize the configuration for each child. The way this was implemented, allowed an attacker to use a valid MACHINE_GUID as an API key. This affects all users who expose their Netdata Agents (children) to non-trusted users and they also expose to the same users Netdata Agent parents that aggregate data from all these children. The problem has been fixed in: Netdata agent v1.37 (stable) and Netdata agent v1.36.0-409 (nightly). As a workaround, do not enable streaming by default. If you have previously enabled this, it can be disabled. Limiting access to the port on the recipient Agent to trusted child connections may mitigate the impact of this vulnerability.

Please cleanup <1.37.0.
Comment 1 Petr Vaněk gentoo-dev 2024-01-05 12:22:33 UTC
Vulnerable version removed in commit https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74ca7bafd2e05cfa5f2d8b6beb6b430cb2dcd817

commit 74ca7bafd2e05cfa5f2d8b6beb6b430cb2dcd817
Author:     Craig Andrews <candrews@gentoo.org>
AuthorDate: Mon Feb 27 09:07:50 2023 -0500
Commit:     Craig Andrews <candrews@gentoo.org>
CommitDate: Mon Feb 27 09:24:40 2023 -0500

    net-analyzer/netdata: drop 1.35.1, 1.36.0, 1.36.1-r1, 1.37.0, 1.37.1
    
    Signed-off-by: Craig Andrews <candrews@gentoo.org>

 net-analyzer/netdata/Manifest                 |   5 -
 net-analyzer/netdata/netdata-1.35.1.ebuild    | 158 --------------------------
 net-analyzer/netdata/netdata-1.36.0.ebuild    | 158 --------------------------
 net-analyzer/netdata/netdata-1.36.1-r1.ebuild | 158 --------------------------
 net-analyzer/netdata/netdata-1.37.0.ebuild    | 158 --------------------------
 net-analyzer/netdata/netdata-1.37.1.ebuild    | 158 --------------------------
 6 files changed, 795 deletions(-)