Go Vulnerability Database
GO-2023-1621
Incorrect calculation on P256 curves in crypto/internal/nistec
Details
The ScalarMult and ScalarBaseMult methods of the P256 Curve may return an incorrect result if called with some specific unreduced scalars (a scalar larger than the order of the curve).
This does not impact usages of crypto/ecdsa or crypto/ecdh.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | stdlib | All versions before 1.19.7 (fixed in 1.19.7) From 1.20.0-0 before 1.20.2 (fixed in 1.20.2) |