What’s Vulnerable › Vulnerabilities
CVE-2023-24532: Incorrect calculation on P256 curves in crypto/internal/nistec
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.8% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2023-03-08 · updated 2026-06-17
- Weakness: CWE-682
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.
Affected products
- Go: before 1.19.7; from 1.20.0 before 1.20.2 — fixed in 1.19.7, 1.20.2
How to fix
Upgrade to a fixed version: Go 1.19.7, 1.20.2. Check the vendor advisory for mitigations.
References
- https://go.dev/cl/471255
- https://go.dev/issue/58647
- https://groups.google.com/g/golang-announce/c/3-TpUx48iQY
- https://pkg.go.dev/vuln/GO-2023-1621
- https://go.dev/cl/471255
- https://go.dev/issue/58647
- https://groups.google.com/g/golang-announce/c/3-TpUx48iQY
- https://pkg.go.dev/vuln/GO-2023-1621
- https://security.netapp.com/advisory/ntap-20230331-0011/
Get alerted when CVE-2023-24532 or the next vulnerability affects your stack