Go Vulnerability Database
GO-2024-3106
Stack exhaustion in Decoder.Decode in encoding/gob
Details
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 packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | stdlib | All versions before 1.22.7 (fixed in 1.22.7) From 1.23.0-0 before 1.23.1 (fixed in 1.23.1) |