encoding/xml: infinite loop when using xml.NewTokenDecoder
with a custom TokenReader
[Go 1.15]
#44914
Labels
Milestone
The
Decode
,DecodeElement
, andSkip
methods of anxml.Decoder
provided byxml.NewTokenDecoder
may enter an infinite loop when operating on a customxml.TokenReader
which returns anEOF
in the middle of an open XML element.Thanks to Sam Whited for reporting this issue.
This issue is CVE-2021-27918.
The text was updated successfully, but these errors were encountered: