Security context

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

btcsuite/btcd
master @ 280d4d2
51
Fixes
0
CVEs
HIGH
Peak severity
59.0%
Coverage
Highlights
Denial of Service: 21 prior fixes. Scrutinize any change in this area.
txscript: most-fixed (9 issues). Treat as high-risk during review.
35 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.

Denial of Service: Recursive self-referential calling during JSON marshaling of StringOrArray values triggers stack exhaustion and immediate process crashes. This pattern recurred and required structural casting to prevent infinite recursion.
Consensus Bypass: Deviations in block validation rules, such as BIP30 validation height logic and ancestral activation checks, introduce severe consensus-divergence risks on alternate blockchain forks.
Denial of Service: Input parsing routines in cryptographic libraries suffer from lack of bounds checks on arrays, leading to out-of-bounds writes in SetByteSlice and signature parser crashes.