title: Incorrect calculation on P256 curves in crypto/internal/nistec
description: 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.
problem types: CWE-682: Incorrect Calculation
affected:
{
vendor: Go standard library
product: crypto/internal/nistec
collectionURL: https://pkg.go.dev
packageName: crypto/internal/nistec
versions:
version: 0, lessThan: 1.19.7, status: affected, versionType: semver
version: 1.20.0-0, lessThan: 1.20.2, status: affected, versionType: semver
programRoutines:
name: P256Point.ScalarBaseMult
name: P256Point.ScalarMult
name: P256OrdInverse
defaultStatus: unaffected
}