Security context

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

rustcrypto/elliptic-curves
master @ 18e54e8
2
Fixes
3
CVEs
HIGH
Peak severity
Highlights
Cryptography Bug: 1 prior fix. Scrutinize any change in this area.
k256/src/arithmetic/field.rs: 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.

Cryptography Bug: The BatchInvert implementation for secp256k1 FieldElement failed to correctly handle non-normalized inputs and did not guarantee that output elements were always properly normalized, leading to incorrect cryptographic computations.
Side-Channel Attack: A variable-time basepoint lookup in SM2 generator multiplication exposed the implementation to timing and cache-based side-channel attacks, which required replacing with a constant-time table lookup.
Denial-of-Service: Unchecked slice operations (split_at) on untrusted ciphertext during SM2 PKE decryption allow remote attackers to cause application panics and crash the process via crafted inputs.