Security context

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

giampaolo/psutil
master @ 7b6a9a6
2
Fixes
1
CVEs
HIGH
Peak severity
0.0%
Coverage
Highlights
Information Disclosure: 1 prior fix. Scrutinize any change in this area.
.github/workflows/changelog_bot.yml: most-fixed (1 issue). Treat as high-risk during review.
1 high-severity fix in this history; regressions here are high-impact.
Recurring patterns

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

Remote Code Execution: Workflows triggered by pull requests that execute script files directly from the PR head can be abused by external contributors to run arbitrary code with write permissions or secrets access. Running trusted code strictly from the default master branch mitigates this.
Information Disclosure: Declaring stack buffers without zero-initialization, coupled with relaxed length validations during sysctl sysctlbyname calls, allows uninitialized kernel or stack memory to leak back to userspace when fewer bytes are written than expected.
Double Free: Reference counting bugs in C extensions during Python object conversion (as tracked in CVE-2019-18874) can lead to double-free conditions, facilitating denial of service or potentially arbitrary code execution when processing crafted system data.