Advisory

GO-2022-0187

Also known as: CVE-2017-8932

Summary

Incorrect computation for P-256 curves in crypto/elliptic

Details

The ScalarMult implementation of curve P-256 for amd64 architectures generates incorrect results for certain specific input points. An adaptive attack can progressively extract the scalar input to ScalarMult by submitting crafted points and observing failures to derive correct output. This leads to a full key recovery attack against static ECDH, as used in popular JWT libraries.

Severity

Not rated by the source.

Dates

Published
2022-07-01 20:11 UTC
Modified
2024-05-20 16:03 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 1.6.0-0, fixed 1.7.6, introduced 1.8.0-0, fixed 1.8.2 (semver)

Fixed versions

1.7.6, 1.8.2

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