Go Vulnerability Database
GO-2024-3105
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | stdlib | 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) |