Security context

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

nim-lang/nim
devel @ d251eae
44
Fixes
9
CVEs
CRITICAL
Peak severity
38.9%
Coverage
Highlights
Memory Corruption: 5 prior fixes. Scrutinize any change in this area.
lib/pure/net.nim: most-fixed (8 issues). Treat as high-risk during review.
14 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.

Command Injection: Insecure shell argument escaping and fallback command execution via shell command shells have allowed direct injection vulnerabilities. Developers must leverage robust quoteShell mechanisms rather than fragile whitespace checking.
Insecure TLS Configuration: Historical defaults in net.nim left SSL/TLS connections exposed to Man-in-the-Middle (MitM) attacks by failing to verify certificates by default, and using insecure cipher strings.
Memory Corruption: Compiler optimization passes (specifically ARC/ORC liveness analysis and cursor inference) have repeatedly introduced use-after-free flaws by incorrectly optimizing temporary lifetimes or tracking conversions.