ADVISORIES

Go Vulnerability Database

GO-2022-0217

Denial of service affecting P-521 and P-384 curves in crypto/elliptic

Details

A DoS vulnerability in the crypto/elliptic implementations of the P-521 and P-384 elliptic curves may let an attacker craft inputs that consume excessive amounts of CPU.

These inputs might be delivered via TLS handshakes, X.509 certificates, JWT tokens, ECDH shares or ECDSA signatures. In some cases, if an ECDH private key is reused more than once, the attack can also lead to key recovery.

Affected packages

EcosystemPackageAffected versions
Gostdlib
All versions before 1.10.8 (fixed in 1.10.8)
From 1.11.0-0 before 1.11.5 (fixed in 1.11.5)

References