# CVE-2022-30635: Stack exhaustion when decoding certain messages in encoding/gob

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2022-08-09 · Modified: 2026-03-06
- Aliases: UBUNTU-CVE-2022-30635, DEBIAN-CVE-2022-30635, GO-2022-0526, BIT-golang-2022-30635, ALPINE-CVE-2022-30635
- Record: https://cvemate.com/vulnerability/CVE-2022-30635 · JSON: https://cvemate.com/vulnerability/CVE-2022-30635/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 1.915%, percentile 80.554%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine go (Alpine Linux): ≥ 1.18.0, \< 1.18.4-r0
- debian golang-1.19 (Debian): \< 1.19~rc2-1
- ubuntu golang-1.13 (Ubuntu): \< 1.13.8-1ubuntu1~16.04.3+esm3 \| \< 1.13.8-1ubuntu1~18.04.4+esm1 \| \< 1.13.8-1ubuntu1.2 \| \< 1.13.8-1ubuntu2.22.04.2
- ubuntu golang-1.16 (Ubuntu): \< 1.16.2-0ubuntu1~18.04.2+esm1 \| \< 1.16.2-0ubuntu1~20.04.1
- ubuntu golang-1.18 (Ubuntu): \< 1.18.1-1ubuntu1~18.04.4 \| \< 1.18.1-1ubuntu1~20.04.2 \| \< 1.18.1-1ubuntu1.1
- go standard library encoding/gob: \< 1.17.12 \| ≥ 1.18.0-0, \< 1.18.4
- golang go: \< 1.17.12 \| ≥ 1.18.0, \< 1.18.4
- Go stdlib (Go): ≥ 1.18.0-0, \< 1.18.4

## References

- <https://go.dev/cl/417064>
- <https://go.googlesource.com/go/+/6fa37e98ea4382bf881428ee0c150ce591500eb7>
- <https://go.dev/issue/53615>
- <https://groups.google.com/g/golang-announce/c/nqrv9fbR0zE>
- <https://pkg.go.dev/vuln/GO-2022-0526>
- <https://ubuntu.com/security/CVE-2022-30635>
- <https://github.com/golang/go/commit/fb979a50823e5a0575cf6166b3f17a13364cbf81>
- <https://ubuntu.com/security/notices/USN-6038-1>
- <https://ubuntu.com/security/notices/USN-6038-2>
- <https://www.cve.org/CVERecord?id=CVE-2022-30635>
- <https://security-tracker.debian.org/tracker/CVE-2022-30635>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-30635>
- <https://security.alpinelinux.org/vuln/CVE-2022-30635>

---

Data as of 2026-12-05T07:37:15.399Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
