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

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.92%, higher than 80% of CVEs (2026-12-01)
- Published: 2022-07-20T20:52:17.000Z
- Modified: 2026-09-08T08:47:48.983Z
- Also known as: GO-2022-0526, BIT-GOLANG-2022-30635
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Go

## 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.

(As written by CVE List.)

## Affected

- encoding/gob: before 1.17.12; from 1.18.0-0 before 1.18.4
- stdlib (Go): before 1.17.12; from 1.18.0-0 before 1.18.4
- golang go: before 1.17.12; from 1.18.0 before 1.18.4
- golang (Bitnami): before 1.17.12; from 1.18.0 before 1.18.4

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://go.dev/cl/417064> (advisory, fix, patch, vendor-advisory)
- <https://go.googlesource.com/go/+/6fa37e98ea4382bf881428ee0c150ce591500eb7> (advisory, fix, mailing-list, patch, vendor-advisory)
- <https://go.dev/issue/53615> (advisory, issue-tracking, report, vendor-advisory)
- <https://groups.google.com/g/golang-announce/c/nqrv9fbR0zE> (advisory, mailing-list, vendor-advisory, web)
- <https://pkg.go.dev/vuln/GO-2022-0526> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-30635> (web)

## Sources

- CVE List: [CVE-2022-30635](https://www.cve.org/CVERecord?id=CVE-2022-30635), CVE Terms of Use, modified 2026-03-06
- Go Vulnerability Database: [GO-2022-0526](https://pkg.go.dev/vuln/GO-2022-0526), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2022-30635](https://nvd.nist.gov/vuln/detail/CVE-2022-30635), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GOLANG-2022-30635](https://osv.dev/vulnerability/BIT-GOLANG-2022-30635), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-30635 · Whole record: https://cve.day/CVE-2022-30635.json · Rebuilt by cve.day 2026-11-25T22:58:14.065Z
