libsodium's first CVE: Ed25519 point-validation gap (CVE-2025-69277)
Frank Denis disclosed and fixed a bug in libsodium's low-level crypto_core_ed25519_is_valid_point(): it checked only one projective coordinate condition (X = 0) and not Y = Z, so some points outside the prime-order subgroup were accepted. Versions up to 1.0.20 were affected.
Broken implementation. The underlying math is not broken by this. The failure is in code, hardware, or how the primitive is used.
Background
High-level APIs (crypto_sign_*, standard key generation, scalar multiplication) were not affected. Only custom protocols that relied on this function to reject small-order or mixed-order points from untrusted input were exposed. Notable mainly as the first CVE in libsodium's roughly 13-year history, and as a reminder that cofactor handling on Edwards curves is a recurring source of subtle implementation bugs.
Sources
- blogA vulnerability in libsodiumFrank Denis, 00f.net
- cveGHSA-mrfv-m5wm-5w6w / CVE-2025-69277GitHub Advisory Database, github.com