MEDIUM5.9
GO-2022-0187
Incorrect computation for P-256 curves in crypto/elliptic
Quick fix
GO-2022-0187 — stdlib: upgrade to the fixed version with the command below.
go get stdlib@v1.7.6Details
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.
Are you affected?
Enter the version of the package you're using.