ADVISORIES

Go Vulnerability Database

GO-2021-0234

Infinite loop when decoding inputs in encoding/xml

Details

The Decode, DecodeElement, and Skip methods of an xml.Decoder provided by xml.NewTokenDecoder may enter an infinite loop when operating on a custom xml.TokenReader which returns an EOF in the middle of an open XML element.

Affected packages

EcosystemPackageAffected versions
Gostdlib
All versions before 1.15.9 (fixed in 1.15.9)
From 1.16.0-0 before 1.16.1 (fixed in 1.16.1)

References