VDB
Sign up
HIGH7.5

GO-2022-0523

Stack exhaustion when unmarshaling certain documents in encoding/xml

Quick fix

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

go get stdlib@v1.17.12

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.

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