GO-2021-0234

Infinite loop when decoding inputs in encoding/xml

At a glance

Published
Updated
CVE
CVE-2021-27918
Aliases
BIT-golang-2021-27918

Description

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

PackageVersions
Go · stdlibintroduced 0, fixed 1.15.9, introduced 1.16.0-0, fixed 1.16.1

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database