Advisory

GO-2021-0319

Also known as: BIT-golang-2022-23806, CVE-2022-23806

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.

Severity

Not rated by the source.

Dates

Published
2022-05-23 22:15 UTC
Modified
2024-05-20 16:03 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 0, fixed 1.16.14, introduced 1.17.0-0, fixed 1.17.7 (semver)

Fixed versions

1.16.14, 1.17.7

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences