CVE-2024-34155: Stack-exhaustion denial of service in Go source-code parsing
CVE-2024-34155 is a stack-exhaustion vulnerability in Go's go/parser standard-library component. Calling any of its Parse functions on Go source code containing deeply nested literals can exhaust the stack and cause a panic, resulting in denial of service in applications that process such input.
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.
Processing deeply nested literals can cause an application panic through stack exhaustion, disrupting the availability of the application performing source-code parsing.
Mitigation
If you can’t patch tonight, do this now.
Until patched, do not parse untrusted Go source where possible. Enforce a maximum source size and nesting depth before parsing, isolate parsing in a resource-constrained worker process, and handle parser failures so a panic cannot take down the primary service.
Remediation
Patch, then assume compromise.
Install vendor-provided Go security updates and updated application packages or container images. For Echo golang-1.23 packages, upgrade the library and related packages to version 1.23.1 or later. For RHEL 8, apply RHSA-2024:6908, which supplies patched Go 1.21.13 module packages; for RHEL 9, apply RHSA-2024:6913, which supplies golang 1.21.13-3.el9_4 and associated packages. Update affected Rocky Linux packages according to the applicable CIQ advisory.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2024-34155 exploited in the wild?
- As of Oct 2, 2026, Mallory has no reports of CVE-2024-34155 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2024-34155?
- As of Oct 2, 2026, Mallory has found no public exploit for CVE-2024-34155.
- Is there a patch for CVE-2024-34155?
- Install vendor-provided Go security updates and updated application packages or container images. For Echo golang-1.23 packages, upgrade the library and related packages to version 1.23.1 or later.
- How severe is CVE-2024-34155?
- CVE-2024-34155 has a CVSS v3.1 score of 4.3 (Medium) and an EPSS score of 1.1% (64th percentile) as of Oct 2, 2026.
Recent activity
42 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.