Security context

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

redis/hiredis
master @ 29ea279
13
Fixes
0
CVEs
HIGH
Peak severity
63.6%
Coverage
Highlights
Auth Bypass: 4 prior fixes. Scrutinize any change in this area.
hiredis.c: most-fixed (5 issues). Treat as high-risk during review.
12 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.

Auth Bypass: Multiple fixes address gaps in TLS peer verification, allowing connections with missing or incorrect hostname verification. The pattern is that verification options were optional or incorrectly applied, enabling man-in-the-middle attacks.
Integer Overflow: Formatting commands larger than 4GB and array creation can overflow integer lengths, leading to undersized allocations and heap corruption. The fixes introduce overflow checks before allocation.
Integer Overflow: RESP parsing of bulk and multi-bulk lengths can truncate or overflow, causing memory corruption. Bounds checks were added to validate lengths before use.