Highlights
Cryptography: 3 prior fixes. Scrutinize any change in this area.
state.go: most-fixed (4 issues). Treat as high-risk during review.
5 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.
Cryptography: Failure to enforce strict nonce limits allows nonce reuse after 2^64 messages, severely compromising the underlying AEAD cipher security and leading to potential message decryption. This risk is tracked under CVE-2021-4239.
Auth Bypass: If decryption or verification fails during handshake processing, failing to roll back the handshake state (like s.rs) or checkpoints allows the state machine to corrupt or enter an invalid, partially-authenticated state. This bypasses protocol integrity checks.
Cryptography: Using low-level Curve25519 ScalarMult APIs can lead to incorrect handling of invalid points or inputs, which can leak private keys. Transitioning to safe wrappers like X25519 is required to mitigate this risk.