ADVISORIES

Go Vulnerability Database

GO-2024-3107

Stack exhaustion in Parse in go/build/constraint

Details

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

Affected packages

EcosystemPackageAffected versions
Gostdlib
All versions before 1.22.7 (fixed in 1.22.7)
From 1.23.0-0 before 1.23.1 (fixed in 1.23.1)

References