ADVISORIES

Go Vulnerability Database

GO-2022-0435

Panic due to large inputs affecting P-256 curves in crypto/elliptic

Details

A crafted scalar input longer than 32 bytes can cause P256().ScalarMult or P256().ScalarBaseMult to panic. Indirect uses through crypto/ecdsa and crypto/tls are unaffected. amd64, arm64, ppc64le, and s390x are unaffected.

Affected packages

EcosystemPackageAffected versions
Gostdlib
All versions before 1.17.9 (fixed in 1.17.9)
From 1.18.0-0 before 1.18.1 (fixed in 1.18.1)

References