CVE-2023-24537: Infinite Loop in Go go/parser Parse Functions
- Vendor
- Golang
CVE-2023-24537 is a denial-of-service vulnerability in Go's source-code parser. Go Parse functions can enter an infinite loop when processing Go source containing a //line directive with an excessively large line number. Integer overflow during line-number handling prevents the parser loop from reaching its exit condition.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
An unauthenticated remote attacker able to submit crafted Go source to an application that invokes the affected parsing functions can cause sustained CPU consumption and render the parsing service or affected application unresponsive. The issue has no known confidentiality or integrity impact and does not provide code execution.
Mitigation
If you can’t patch tonight, do this now.
Do not parse untrusted Go source with vulnerable Go versions. Until patched, restrict parsing inputs to trusted users, reject or sanitize //line directives and implausibly large line-number values before parsing where feasible, and enforce execution timeouts and CPU/resource limits around parsing operations to contain denial-of-service impact.
Remediation
Patch, then assume compromise.
Upgrade Go to version 1.19.8, 1.20.3, or a later fixed release. For vendor-packaged Go runtimes and products embedding Go, apply the vendor security update that incorporates the upstream fix.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2023-24537 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2023-24537 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2023-24537?
- As of Oct 16, 2026, Mallory has found no public exploit for CVE-2023-24537.
- Is there a patch for CVE-2023-24537?
- Upgrade Go to version 1.19.8, 1.20.3, or a later fixed release. For vendor-packaged Go runtimes and products embedding Go, apply the vendor security update that incorporates the upstream fix.
- What products are affected by CVE-2023-24537?
- Golang Go.
- How severe is CVE-2023-24537?
- CVE-2023-24537 has a CVSS v3.1 score of 7.5 (High) and an EPSS score of 1.5% (75th percentile) as of Oct 16, 2026.
Recent activity
32 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.