CVE-2022-1962
MEDIUM5.5EPSS 0.01%Stack exhaustion due to deeply nested types in go/parser
Published: 7/20/2022Modified: 4/28/2026
Description
Uncontrolled recursion in the Parse functions in go/parser before Go 1.17.12 and Go 1.18.4 allow an attacker to cause a panic due to stack exhaustion via deeply nested types or declarations.
Affected packages (4)
- Bitnami/golangfrom 0, < 1.17.12, >= 1.18.0, < 1.18.4
- Debian/golang-1.15from 0
- Debian/golang-1.19from 0, < 1.19~rc2-1
- Go/stdlibfrom 0, < 1.17.12, >= 1.18.0-0, < 1.18.4
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
References (7)
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2022-1962
- PATCHhttps://go.dev/cl/417063
- PATCHhttps://go.googlesource.com/go/+/695be961d57508da5a82217f7415200a11845879
- REPORThttps://go.dev/issue/53616
- WEBhttps://groups.google.com/g/golang-announce/c/nqrv9fbR0zE
- WEBhttps://nvd.nist.gov/vuln/detail/CVE-2022-1962
- WEBhttps://pkg.go.dev/vuln/GO-2022-0515