Advisory

GO-2021-0234

Also known as: BIT-golang-2021-27918, CVE-2021-27918

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.

Severity

Not rated by the source.

Dates

Published
2022-02-17 17:34 UTC
Modified
2024-05-20 16:03 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 0, fixed 1.15.9, introduced 1.16.0-0, fixed 1.16.1 (semver)

Fixed versions

1.15.9, 1.16.1

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences