Advisory

GO-2023-1621

Also known as: BIT-golang-2023-24532, CVE-2023-24532

Summary

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.

Severity

Not rated by the source.

Dates

Published
2023-03-08 19:30 UTC
Modified
2026-02-04 02:47 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 0, fixed 1.19.7, introduced 1.20.0-0, fixed 1.20.2 (semver)

Fixed versions

1.19.7, 1.20.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