Advisory

GO-2024-3106

Also known as: BIT-golang-2024-34156, CVE-2024-34156

Summary

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.

Severity

Not rated by the source.

Dates

Published
2024-09-06 19:15 UTC
Modified
2026-11-14 13:12 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 0, fixed 1.22.7, introduced 1.23.0-0, fixed 1.23.1 (semver)

Fixed versions

1.22.7, 1.23.1

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences