<feed xmlns='http://www.w3.org/2005/Atom'>
<title>packages/admin/netdata/patches/011-CVE-2023-22496-sanitize-command-arguments.patch, branch master</title>
<subtitle>Mirror of packages feed</subtitle>
<id>https://git.openwrt.org/feed/packages/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/feed/packages/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/'/>
<updated>2026-11-17T09:43:28Z</updated>
<entry>
<title>netdata: backport fixes for CVE-2023-22496 and CVE-2023-22497</title>
<updated>2026-11-17T09:43:28Z</updated>
<author>
<name>Josef Schlehofer</name>
</author>
<published>2026-11-15T03:03:22Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=9b5c822c7f50cfdeb101ede22134d0dec662f56c'/>
<id>urn:sha1:9b5c822c7f50cfdeb101ede22134d0dec662f56c</id>
<content type='text'>
Both issues are in the streaming receiver, which is disabled by default,
and both were fixed upstream in 1.37.0.

CVE-2023-22497 [1]: a parent accepted the MACHINE GUID of a child that
had connected before as an API key. Backport the upstream fix [2],
which gives every section of stream.conf a type. The GUID of a
connected child is now refused as an API key without any change to the
configuration. Sections that stream.conf holds for single machines
should get the new "type = machine" line. Without it such a section
still works as an API key as long as its machine has not connected.

CVE-2023-22496 [3]: the arguments of the alert notification command
were not sanitized, so a streaming child was able to change the command
that the parent runs. It also needs health to be enabled, which this
package turns off by default. Backport the upstream fix [4]. health.c
is ported by hand to the argument list of 1.33.1, and the sanitizing
function is taken from upstream master, where it was hardened later [5].

As in upstream, a leading dash is removed from every argument, '$' is
replaced by '_', and the script named by "exec" is quoted, so it can no
longer carry arguments of its own. An argument that contains an
apostrophe now reaches the notification script in one piece.

[1] https://nvd.nist.gov/vuln/detail/CVE-2023-22497
[2] https://github.com/netdata/netdata/commit/811028aea2
[3] https://nvd.nist.gov/vuln/detail/CVE-2023-22496
[4] https://github.com/netdata/netdata/commit/4de2ce54d5
[5] https://github.com/netdata/netdata/commit/3e508c8f95

Signed-off-by: Josef Schlehofer &lt;pepe.schlehofer@gmail.com&gt;
</content>
</entry>
</feed>
