ADVISORIES

Go Vulnerability Database

GO-2021-0319

Incorrect computation for some invalid field elements in crypto/elliptic

Details

Some big.Int values that are not valid field elements (negative or overflowing) might cause Curve.IsOnCurve to incorrectly return true. Operating on those values may cause a panic or an invalid curve operation. Note that Unmarshal will never return such values.

Affected packages

EcosystemPackageAffected versions
Gostdlib
All versions before 1.16.14 (fixed in 1.16.14)
From 1.17.0-0 before 1.17.7 (fixed in 1.17.7)

References