# CVE-2024-34156: Stack exhaustion in Decoder.Decode 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.75%, higher than 78% of CVEs (2026-12-01)
- Published: 2024-09-06T19:15:23.000Z
- Modified: 2026-11-23T21:12:29.730Z
- Also known as: GO-2024-3106, BIT-GOLANG-2024-34156
- Related: CVE-2022-30635, RHEA-2024:4866, RHEA-2025:12446, RHSA-2024:11216, RHSA-2024:11217, RHSA-2024:6908, RHSA-2024:6912, RHSA-2024:6913, RHSA-2024:6914, RHSA-2024:6946, RHSA-2024:6947, RHSA-2024:7102, RHSA-2024:7103, RHSA-2024:7135, RHSA-2024:7136, RHSA-2024:7202, RHSA-2024:7203, RHSA-2024:7204, RHSA-2024:7205, RHSA-2024:7206, RHSA-2024:7207, RHSA-2024:7208, RHSA-2024:7261, RHSA-2024:7262, RHSA-2024:7350, RHSA-2024:7351, RHSA-2024:7449, RHSA-2024:7455, RHSA-2024:7456, RHSA-2024:7485, RHSA-2024:7487, RHSA-2024:7488, RHSA-2024:7769, RHSA-2024:7791, RHSA-2024:7792, RHSA-2024:7793, RHSA-2024:7794, RHSA-2024:7818, RHSA-2024:7819, RHSA-2024:7820, RHSA-2024:7821, RHSA-2024:7822, RHSA-2024:7852, RHSA-2024:8038, RHSA-2024:8039, RHSA-2024:8110, RHSA-2024:8111, RHSA-2024:8112, RHSA-2024:8232, RHSA-2024:8263, RHSA-2024:8428, RHSA-2024:8690, RHSA-2024:8694, RHSA-2024:8700, RHSA-2024:9454, RHSA-2024:9456, RHSA-2024:9459, RHSA-2024:9472, RHSA-2024:9473, RHSA-2025:0203, RHSA-2025:1190, RHSA-2025:3773
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Go

## Description

Calling Decoder.Decode on a message which contains deeply nested structures can cause a panic due to stack exhaustion. This is a follow-up to CVE-2022-30635.

(As written by CVE List.)

## Affected

- encoding/gob: before 1.22.7; from 1.23.0-0 before 1.23.1
- go_standard_library encoding\/gob: before 1.22.7; from 1.23.0-0 before 1.23.1
- stdlib (Go): before 1.22.7; from 1.23.0-0 before 1.23.1
- golang (Bitnami): before 1.22.7; from 1.23.0-0 before 1.23.1

## 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`
- Bitnami Vulnerability Database: rating High

## References

- <https://go.dev/cl/611239> (fix, web)
- <https://go.dev/issue/69139> (report, web)
- <https://groups.google.com/g/golang-dev/c/S9POB9NCTdk> (web)
- <https://pkg.go.dev/vuln/GO-2024-3106> (web)
- <https://security.netapp.com/advisory/ntap-20240926-0004/> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-34156> (web)

## Sources

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

---

Page: https://cve.day/CVE-2024-34156 · Whole record: https://cve.day/CVE-2024-34156.json · Rebuilt by cve.day 2026-11-25T22:58:45.148Z
