Skip to main content
Mallory
HighVulnerability

CVE-2024-34158: Stack Exhaustion DoS in Go go/build/constraint Parse

Published Sep 6, 2024 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.5High · v3.1
EPSS1.4%73rd percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
IdentifiersCVE-2024-34158CWE-674 · Uncontrolled Recursion

CVE-2024-34158 is an uncontrolled-recursion vulnerability in Go's go/build/constraint package. Calling Parse on a legacy "// +build" build-tag line containing deeply nested expressions can exhaust the process stack and trigger a panic. The resulting process termination can cause denial of service in applications that parse attacker-controlled or otherwise untrusted build-tag input.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

A crafted build-tag expression can exhaust the stack and panic the affected Go process, causing loss of availability and denial of service. No confidentiality or integrity impact is described.

Mitigation

If you can’t patch tonight, do this now.

Until patched, do not pass untrusted or unbounded build-tag input to go/build/constraint.Parse. Enforce strict input-size and nesting-depth limits before parsing, reject legacy build constraints from untrusted sources where feasible, and isolate parsing workloads so a panic cannot disrupt critical services.

Remediation

Patch, then assume compromise.

Update affected golang-1.23 packages to version 1.23.1 or later. For vendor-distributed Go runtimes and products that embed the vulnerable component, apply the applicable vendor security update containing the corrected Go packages.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
FAQ

Frequently asked questions

Is CVE-2024-34158 exploited in the wild?
As of Oct 2, 2026, Mallory has no reports of CVE-2024-34158 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2024-34158?
As of Oct 2, 2026, Mallory has found no public exploit for CVE-2024-34158.
Is there a patch for CVE-2024-34158?
Update affected golang-1.23 packages to version 1.23.1 or later. For vendor-distributed Go runtimes and products that embed the vulnerable component, apply the applicable vendor security update containing the corrected Go packages.
How severe is CVE-2024-34158?
CVE-2024-34158 has a CVSS v3.1 score of 7.5 (High) and an EPSS score of 1.4% (73rd percentile) as of Oct 2, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.