CVE-2023-24532 Incorrect calculation on P256 curves in crypto/internal/nistec
Incorrect scalar multiplication results in Go's P256 curve implementation may affect custom cryptographic protocols using the internal nistec package directly.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-24532?
CVE-2023-24532 is a medium-severity vulnerability in Golang Go, published on 8 Mar 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-682
Which versions are affected by CVE-2023-24532?
2 open source packages ship an affected version, including golang and stdlib. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
golang Bitnami | All versions | 1.19.7, 1.20.2 |
stdlib Go | All versions | 1.19.7, 1.20.2 |
Linux distribution packages (2)
go1.19 openSUSE:Tumbleweed | All versions | 1.19.7-1.1 |
go1.20 openSUSE:Tumbleweed | All versions | 1.20.2-1.1 |
Products include Golang Go.
How do I fix CVE-2023-24532?
Upgrade golang to a fixed version for your release line: 1.19.7 or 1.20.2.
Is CVE-2023-24532 being exploited?
There is no known exploitation of CVE-2023-24532 in the wild and no public exploit code.
Other vulnerabilities in Golang Go
- CVE-2020-0601 Microsoft Windows CryptoAPI Spoofing
- CVE-2026-27143 Missing bound checks can lead to memory corruption in safe Go in cmd/compile
- CVE-2024-24790 Unexpected behavior from Is methods for IPv4-mapped IPv6 addresses in net/netip
- CVE-2023-39320 Arbitrary code execution via go.mod toolchain directive in cmd/go
- CVE-2023-24540 Improper handling of JavaScript whitespace in html/template
Sources
Also known as AZL-37373, AZL-37385, AZL-52875, AZL-78976, AZL-98979, BIT-golang-2023-24532 and 7 more.