GO-2021-0234

Source
https://pkg.go.dev/vuln/GO-2021-0234
Import Source
https://vuln.go.dev/ID/GO-2021-0234.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2021-0234
Aliases
Published
2022-02-17T17:34:24Z
Modified
2024-05-20T16:03:47Z
Summary
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.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2021-0234"
}
References
Credits
    • Sam Whited

Affected packages

Go / stdlib

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.15.9
Introduced
1.16.0-0
Fixed
1.16.1

Ecosystem specific

{
    "imports": [
        {
            "path": "encoding/xml",
            "symbols": [
                "Decoder.Token"
            ]
        }
    ]
}