Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

netdata/netdata
master @ 4cc3bc9
164
Fixes
7
CVEs
HIGH
Peak severity
29.0%
Coverage
Highlights
Denial of Service: 55 prior fixes. Scrutinize any change in this area.
aclk: most-fixed (6 issues). Treat as high-risk during review.
63 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Memory Corruption: Custom string sanitization and Base64/UTF-8 decoders are prone to buffer overflows. Ensuring standard, bounded validation routines is critical to preventing remote code execution.
Privilege Escalation: Execution of privileged helper scripts via setuid/setgid mechanisms, such as ndsudo, must strictly validate input arguments, directory path ownership, and call return statuses to prevent local privilege escalation.
Command Injection: Triggering external scripts (e.g. alert notifications) via subprocess spawning is highly susceptible to command injection if argument strings containing chart, host, or registry metadata are not meticulously escaped.