Skip to content
7.5 High

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

Description

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

Affected products and versions

Product Affected versions Fixed in
go/build/constraint 1.23 1.23.0-0 → < 1.23.1 1.23.1
go/build/constraint 1.22 earliest → < 1.22.7 1.22.7
go_standard_library 1.23 1.23.0-0 → < 1.23.1 1.23.1
go_standard_library 1.22 earliest → < 1.22.7 1.22.7
Track this CVE