CVE-2024-34158: Stack exhaustion in Parse in go/build/constraint
Vulnerability summary
CVE-2024-34158 is a high (CVSS 7.5) Uncontrolled Recursion vulnerability in go standard library go/build/constraint. EPSS estimates a 1.05% chance of exploitation in the next 30 days, higher than 64.2% of scored vulnerabilities.
Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 03-11-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 37 · Related 862Showing 100 of 863.
Timeline
- 06-09-2024PublishedVulnerability first disclosed.
- 04-10-2024Last modifiedVulnerability information updated.
Description
Calling Parse on a "// +build" build tag line with deeply nested expressions can cause a panic due to stack exhaustion.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
1.05%
Chance of exploitation in the next 30 days
Percentile
64%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.05% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard199 products
- aactl< 0.4.12-r18
- actions-runner-controller< 0.9.3-r2
- actions-runner-controller-compat< 0.9.3-r2
- actions-runner-controller-fips< 0.9.3-r2
- actions-runner-controller-fips-compat< 0.9.3-r2
Alpine1 product
- go< 1.22.7-r0 | < 1.23.1-r0
2 vendors · 200 products · Showing 200 of 2202
References
16 links- go.dev/issue/69141REPORT