VDB
Sign up
HIGH7.5

GO-2022-0526

Stack exhaustion when decoding certain messages in encoding/gob

Quick fix

GO-2022-0526 — stdlib: upgrade to the fixed version with the command below.

go get stdlib@v1.17.12

Details

Calling Decoder.Decode on a message which contains deeply nested structures can cause a panic due to stack exhaustion.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/stdlib
Introduced in: 0Fixed in: 1.17.12
Fixgo get stdlib@v1.17.12

References