What’s Vulnerable › Vulnerabilities
CVE-2024-34156: Stack exhaustion in Decoder.Decode in encoding/gob
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-09-06 · updated 2026-06-17
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.
Affected products
- Go standard library Encoding/Gob: before 1.22.7; from 1.23.0-0 before 1.23.1 — fixed in 1.22.7, 1.23.1
How to fix
Upgrade to a fixed version: Go standard library Encoding/Gob 1.22.7, 1.23.1. Check the vendor advisory for mitigations.
References
- https://go.dev/cl/611239
- https://go.dev/issue/69139
- https://groups.google.com/g/golang-dev/c/S9POB9NCTdk
- https://pkg.go.dev/vuln/GO-2024-3106
- https://security.netapp.com/advisory/ntap-20240926-0004/
Get alerted when CVE-2024-34156 or the next vulnerability affects your stack