GO-2024-3105

Source
https://pkg.go.dev/vuln/GO-2024-3105
Import Source
https://vuln.go.dev/ID/GO-2024-3105.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2024-3105
Aliases
Related
Published
2024-09-06T19:15:23Z
Modified
2024-09-10T08:12:19.721080Z
Summary
Stack exhaustion in all Parse functions in go/parser
Details

Calling any of the Parse functions on Go source code which contains deeply nested literals can cause a panic due to stack exhaustion.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2024-3105"
}
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/parser",
            "symbols": [
                "ParseDir",
                "ParseExpr",
                "ParseExprFrom",
                "ParseFile",
                "parser.parseLiteralValue"
            ]
        }
    ]
}