CVE-2024-34158Uncontrolled Recursion in Standard Library GO Build Constraint

Severity
7.5HIGHNVD
EPSS
0.2%
top 62.76%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedSep 6
Latest updateNov 14

Description

Calling Parse on a "// +build" build tag line with deeply nested expressions can cause a panic due to stack exhaustion.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitability: 3.9 | Impact: 3.6

Affected Packages14 packages

🔴Vulnerability Details

6
OSV
golang-1.17 vulnerabilities2024-11-14
OSV
golang-1.18 vulnerabilities2024-11-14
OSV
golang-1.22 vulnerabilities2024-10-23
OSV
Stack exhaustion in Parse in go/build/constraint2024-09-06
GHSA
GHSA-j7vj-rw65-4v26: Calling Parse on a "// +build" build tag line with deeply nested expressions can cause a panic due to stack exhaustion2024-09-06

📋Vendor Advisories

6
Ubuntu
Go vulnerabilities2024-11-14
Ubuntu
Go vulnerabilities2024-11-14
Ubuntu
Go vulnerabilities2024-10-23
Microsoft
Stack exhaustion in Parse in go/build/constraint2024-09-10
Red Hat
go/build/constraint: golang: Calling Parse on a "// +build" build tag line with deeply nested expressions can cause a panic due to stack exhaustion2024-09-06

🕵️Threat Intelligence

2
Wiz
CVE-2026-33466 Impact, Exploitability, and Mitigation Steps | Wiz
Wiz
CVE-2025-68383 Impact, Exploitability, and Mitigation Steps | Wiz
CVE-2024-34158 — Uncontrolled Recursion | cvebase