7.5High

CVE-2024-34158Stack exhaustion in Parse in go/build/constraint

Go standard library go/build/constraint; go_build_constraint go_standard_library Published: (2 years ago)

Description

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

Weakness (CWE): CWE-674

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
go_build_constraint go_standard_library < 1.22.7, 1.23.0-0 – < 1.23.1
Go standard library go/build/constraint < 1.22.7, 1.23.0-0 – < 1.23.1

References and patches