Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
5.3

CVE-2023-24532: Go P256 functions may give wrong result with oversized numbers

CVE-2023-24532 · published 3 years ago
Summary

The P256 math functions in Go’s cryptography library can produce incorrect values when they are given numbers larger than the curve’s allowed range. This only affects the low‑level P256 operations, not higher‑level features like digital signatures or key exchange. Update to a newer Go release or ensure only properly reduced numbers are used with these functions.

What to do
  • Update debian golang-1.19 to version 1.19.8-2.
Affected software
Ecosystem VendorProductAffected versions
Debian:12 debian golang-1.19 < 1.19.8-2
Fix: upgrade to 1.19.8-2
– golang go < 1.19.7
>= 1.20.0, < 1.20.2
cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
Ubuntu:14.04:LTS canonical golang-1.10 All versions
Ubuntu:16.04:LTS canonical golang-1.6 All versions
Ubuntu:Pro:16.04:LTS canonical golang-1.13 All versions
Ubuntu:Pro:16.04:LTS canonical golang-1.18 All versions
Ubuntu:Pro:18.04:LTS canonical golang-1.16 All versions
Ubuntu:18.04:LTS canonical golang-1.8 All versions
Ubuntu:18.04:LTS canonical golang-1.9 All versions
Ubuntu:20.04:LTS canonical golang-1.14 All versions
Ubuntu:22.04:LTS canonical golang-1.17 All versions
Original advisory text
Incorrect calculation on P256 curves in crypto/internal/nistec
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.
Fix within
Internet-facing 60 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker partial control
Severity
5.3 Medium
Exploitation
<1% chance of attack within 30 days
Type
CWE-682Incorrect Calculation
Timeline
Published8 Mar 2023
Updated4 Nov 2026
First seen15 Sep 2026
Sources
CVE-2023-24532 · NVD
Track software like this
Free during beta