GO-2021-0319

Incorrect computation for some invalid field elements in crypto/elliptic

At a glance

Published
Updated
CVE
CVE-2022-23806
Aliases
BIT-golang-2022-23806

Description

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

PackageVersions
Go · stdlibintroduced 0, fixed 1.16.14, introduced 1.17.0-0, fixed 1.17.7

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database