{"id":"GO-2022-0515","summary":"Stack exhaustion due to deeply nested types in go/parser","details":"Calling any of the Parse functions on Go source code which contains deeply nested types or declarations can cause a panic due to stack exhaustion.","aliases":["BIT-golang-2022-1962","CVE-2022-1962"],"modified":"2024-05-20T16:03:47Z","published":"2022-07-20T17:01:45Z","database_specific":{"url":"https://pkg.go.dev/vuln/GO-2022-0515","review_status":"REVIEWED"},"references":[{"type":"FIX","url":"https://go.dev/cl/417063"},{"type":"FIX","url":"https://go.googlesource.com/go/+/695be961d57508da5a82217f7415200a11845879"},{"type":"REPORT","url":"https://go.dev/issue/53616"},{"type":"WEB","url":"https://groups.google.com/g/golang-announce/c/nqrv9fbR0zE"}],"affected":[{"package":{"name":"stdlib","ecosystem":"Go","purl":"pkg:golang/stdlib"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.17.12"},{"introduced":"1.18.0-0"},{"fixed":"1.18.4"}]}],"ecosystem_specific":{"imports":[{"symbols":["ParseExprFrom","ParseFile","parser.parseBinaryExpr","parser.parseIfStmt","parser.parsePrimaryExpr","parser.parseStmt","parser.parseUnaryExpr","parser.tryIdentOrType","resolver.closeScope","resolver.openScope"],"path":"go/parser"}]},"database_specific":{"source":"https://vuln.go.dev/ID/GO-2022-0515.json"}}],"schema_version":"1.7.3","credits":[{"name":"Juho Nurminen of Mattermost"}]}