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.
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.
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:- Before 1.22.7 is affected.
- Version 1.23.0-0 and below 1.23.1 is affected.
- Before 1.22.7 is affected.
- Version 1.23.0-0 and below 1.23.1 is affected.
Exploit Probability
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.