GO Compiler Parse Panic: Stack Exhaustion via Deeply Nested //+build tags
CVE-2024-34158 Published on September 6, 2024

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

NVD

Vulnerability Analysis

CVE-2024-34158 is exploitable with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity, and a high impact on availability.

Attack Vector:
NETWORK
Attack Complexity:
LOW
Privileges Required:
NONE
User Interaction:
NONE
Scope:
UNCHANGED
Confidentiality Impact:
NONE
Integrity Impact:
NONE
Availability Impact:
HIGH

Weakness Type

What is a Stack Exhaustion Vulnerability?

The product does not properly control the amount of recursion which takes place, consuming excessive resources, such as allocated memory or the program stack.

CVE-2024-34158 has been classified to as a Stack Exhaustion vulnerability or weakness.


Products Associated with CVE-2024-34158

You can be notified by email with stack.watch whenever vulnerabilities like CVE-2024-34158 are published in these products:

 
 

Affected Versions

Go standard library go/build/constraint: go_build_constraint go_standard_library:

Exploit Probability

EPSS
0.16%
Percentile
37.36%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.