ADVISORIES

Go Vulnerability Database

GO-2022-0523

Stack exhaustion when unmarshaling certain documents in encoding/xml

Details

Unmarshaling an XML document into a Go struct which has a nested field that uses the 'any' field tag can 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