CVE-2024-34156

GO-2024-3106 · published 6 Sep 2024 · updated 16 Nov 2026

Stack exhaustion in Decoder.Decode in encoding/gob

7.5HighCVSS 7.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 1.22.7, 1.23.1 and stdlib 1.23.1.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Go standard library<1.22.7, >=1.23.0-0 <1.23.11.22.7, 1.23.1
go: stdlib>=1.23.0-0 <1.23.11.23.1

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in stdlib (Go), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-34156 severity on Zeptric[![CVE-2024-34156](https://zeptric.io/badge/cve/CVE-2024-34156.svg)](https://zeptric.io/cve/CVE-2024-34156)