CVE-2024-34158

Stack exhaustion in Parse in go/build/constraint

HIGH
7.5
CVSS Score
Published: September 6, 2024 at 08:42 PM UTC
Updated: June 17, 2026 at 07:33 AM UTC
2 products affected across 2 vendorsGo/build/constraintGo Standard Library

Using go/build/constraint by Go standard library?

Get instant alerts when new vulnerabilities affect go/build/constraint - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 1%
SSVC
No known exploit

Description

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

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 1.22.71.23.0-0 ≤ v < 1.23.11.23.0-0
Affected range stops below 1.22.7, so it looks safe — our inference, not a vendor statement
Affected range stops below 1.23.1, so it looks safe — our inference, not a vendor statement
v < 1.22.71.23.0-0 ≤ v < 1.23.11.23.0-0
Affected range stops below 1.22.7, so it looks safe — our inference, not a vendor statement
Affected range stops below 1.23.1, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

SSVC — Action Prioritization

SSVCNo known exploitAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.5HIGHCISA-ADP
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusDEFERRED
CWE
CWE-674

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card