Calling Parse on a “// +build” build tag line with deeply nested expressions can cause a panic due to stack exhaustion.
[
{
"vendor": "Go standard library",
"product": "go/build/constraint",
"collectionURL": "https://pkg.go.dev",
"packageName": "go/build/constraint",
"versions": [
{
"version": "0",
"lessThan": "1.22.7",
"status": "affected",
"versionType": "semver"
},
{
"version": "1.23.0-0",
"lessThan": "1.23.1",
"status": "affected",
"versionType": "semver"
}
],
"programRoutines": [
{
"name": "parsePlusBuildExpr"
},
{
"name": "exprParser.not"
},
{
"name": "Parse"
}
],
"defaultStatus": "unaffected"
}
]