CVE-2023-24537 Infinite loop in parsing in go/scanner
An attacker can cause a denial of service via infinite loop in the Go scanner by providing source code with large line numbers in directives.
- 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-24537?
CVE-2023-24537 is a high-severity vulnerability in Golang Go, published on 6 Apr 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Calling any of the Parse functions on Go source code which contains //line directives with very large line numbers can cause an infinite loop due to integer overflow.
Weakness: CWE-190
Which versions are affected by CVE-2023-24537?
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.8, 1.20.3 |
stdlib Go | All versions | 1.19.8, 1.20.3 |
Products include Golang Go.
How do I fix CVE-2023-24537?
Upgrade golang to a fixed version for your release line: 1.19.8 or 1.20.3.
Is CVE-2023-24537 being exploited?
There is no known exploitation of CVE-2023-24537 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-26026, AZL-26029, AZL-37319, AZL-37352, AZL-52676, AZL-79120 and 11 more.