ADVISORIES

Go Vulnerability Database

GO-2022-0526

Stack exhaustion when decoding certain messages in encoding/gob

Details

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

Affected packages

EcosystemPackageAffected versions
Gostdlib
All versions before 1.17.12 (fixed in 1.17.12)
From 1.18.0-0 before 1.18.4 (fixed in 1.18.4)

References