GO-2024-3107

Source
https://pkg.go.dev/vuln/GO-2024-3107
Import Source
https://vuln.go.dev/ID/GO-2024-3107.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2024-3107
Aliases
Related
Published
2024-09-06T19:15:23Z
Modified
2024-09-10T08:12:21.518996Z
Summary
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.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2024-3107"
}
References

Affected packages

Go / stdlib

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.22.7
Introduced
1.23.0-0
Fixed
1.23.1

Ecosystem specific

{
    "imports": [
        {
            "path": "go/build/constraint",
            "symbols": [
                "Parse",
                "exprParser.not",
                "parsePlusBuildExpr"
            ]
        }
    ]
}