GO-2021-0319

Source
https://pkg.go.dev/vuln/GO-2021-0319
Import Source
https://vuln.go.dev/ID/GO-2021-0319.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2021-0319
Aliases
Published
2022-05-23T22:15:21Z
Modified
2024-05-20T16:03:47Z
Summary
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.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2021-0319"
}
References
Credits
    • Guido Vranken

Affected packages

Go / stdlib

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.16.14
Introduced
1.17.0-0
Fixed
1.17.7

Ecosystem specific

{
    "imports": [
        {
            "path": "crypto/elliptic",
            "symbols": [
                "CurveParams.IsOnCurve",
                "p384PointFromAffine",
                "p521PointFromAffine"
            ]
        }
    ]
}