CVE-2022-30635
HIGH7.5EPSS 0.16%Stack exhaustion when decoding certain messages in encoding/gob
Published: 7/20/2022Modified: 4/28/2026
Description
Uncontrolled recursion in Decoder.Decode in encoding/gob before Go 1.17.12 and Go 1.18.4 allows an attacker to cause a panic due to stack exhaustion via a message which contains deeply nested structures.
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 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
References (7)
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2022-30635
- PATCHhttps://go.dev/cl/417064
- PATCHhttps://go.googlesource.com/go/+/6fa37e98ea4382bf881428ee0c150ce591500eb7
- REPORThttps://go.dev/issue/53615
- WEBhttps://groups.google.com/g/golang-announce/c/nqrv9fbR0zE
- WEBhttps://nvd.nist.gov/vuln/detail/CVE-2022-30635
- WEBhttps://pkg.go.dev/vuln/GO-2022-0526