Security context

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

bcgit/bc-java
main @ a29849e
50
Fixes
19
CVEs
CRITICAL
Peak severity
18.9%
Coverage
Highlights
Auth Bypass: 13 prior fixes. Scrutinize any change in this area.
core/src/main/java/org/bouncycastle/crypto/modes/KCCMBlockCipher.java: most-fixed (4 issues). Treat as high-risk during review.
23 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.

Signature Validation Bypass: A critical flaw in X.509 Attribute Certificate validation occurred because the actual cryptographic signature verification step was entirely omitted during path validation. This allowed completely fabricated attributes to be trusted.
Auth Bypass: An authentication bypass existed where a degenerate CMS SignedData structure containing an empty signer set was incorrectly accepted as being validly signed.
Key Extraction: A failure to validate peer-supplied ephemeral messages and virtual public keys allowed attackers to mount small-subgroup confinement attacks to extract reused Diffie-Hellman private keys.