// For flags

CVE-2024-34158

Stack exhaustion in Parse in go/build/constraint

Severity Score

7.5
*CVSS v3.1

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

0
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

Attend
*SSVC
Descriptions

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

A flaw was found in the go/build/constraint package of the Golang standard library. Calling Parse on a "// +build" build tag line with deeply nested expressions can cause a panic due to stack exhaustion.

*Credits: N/A
CVSS Scores
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
* Common Vulnerability Scoring System
SSVC
  • Decision:Attend
Exploitation
None
Automatable
Yes
Tech. Impact
Partial
* Organization's Worst-case Scenario
Timeline
  • 2024-05-01 CVE Reserved
  • 2024-09-06 CVE Published
  • 2024-09-07 EPSS Updated
  • 2024-10-04 CVE Updated
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
  • ---------- First Exploit
CWE
  • CWE-674: Uncontrolled Recursion
  • CWE-1325: Improperly Controlled Sequential Memory Allocation
CAPEC
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
Go Standard Library
Search vendor "Go Standard Library"
Go/build/constraint
Search vendor "Go Standard Library" for product "Go/build/constraint"
< 1.22.7
Search vendor "Go Standard Library" for product "Go/build/constraint" and version " < 1.22.7"
en
Affected
Go Standard Library
Search vendor "Go Standard Library"
Go/build/constraint
Search vendor "Go Standard Library" for product "Go/build/constraint"
>= 1.23.0-0 < 1.23.1
Search vendor "Go Standard Library" for product "Go/build/constraint" and version " >= 1.23.0-0 < 1.23.1"
en
Affected