GO-2022-0515
Stack exhaustion due to deeply nested types in go/parser
At a glance
- Published
- Updated
- CVE
- CVE-2022-1962
- Aliases
- BIT-golang-2022-1962
Description
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.
Affected packages
| Package | Versions |
|---|---|
| Go · stdlib | introduced 0, fixed 1.17.12, introduced 1.18.0-0, fixed 1.18.4 |
References
- https://go.dev/cl/417063 FIX
- https://go.googlesource.com/go/+/695be961d57508da5a82217f7415200a11845879 FIX
- https://go.dev/issue/53616 REPORT
- https://groups.google.com/g/golang-announce/c/nqrv9fbR0zE WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — Go Vulnerability Database |