VDB
Sign up
HIGH7.5

GO-2024-3106

Stack exhaustion in Decoder.Decode in encoding/gob

Quick fix

GO-2024-3106 — stdlib: upgrade to the fixed version with the command below.

go get stdlib@v1.22.7

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/stdlib
Introduced in: 0Fixed in: 1.22.7
Fixgo get stdlib@v1.22.7

References