CVE-2024-34158: Go Build Constraint Go Standard Library
High severity, CVSS 7.5. EPSS: 1% chance of exploitation in the next 30 days.
Calling Parse on a "// +build" build tag line with deeply nested expressions can cause a panic due to stack exhaustion.
Affected products
- Go Build Constraint Go Standard Library: before 1.22.7 (fixed in 1.22.7); from 1.23.0-0, before 1.23.1 (fixed in 1.23.1)
- Go Standard Library Go/build/constraint: before 1.22.7 (fixed in 1.22.7); from 1.23.0-0, before 1.23.1 (fixed in 1.23.1)
Published 2024-09-06. Last modified 2026-06-17.