CVE-2021-27918

High

Description

encoding/xml in Go before 1.15.9 and 1.16.x before 1.16.1 has an infinite loop if a custom TokenReader (for xml.NewTokenDecoder) returns EOF in the middle of an element. This can occur in the Decode, DecodeElement, or Skip method.

SeverityHigh
CVSS7.5
Exploit probability—
ProductGo
PublishedMar 11, 2021
First seenMar 11, 2021

How to fix

Update
  • golang go1.15.9, 1.16.1 or later
  • stdlib1.15.9, 1.16.1 or later

Affected products

ProductAffected versionsFixed in
golang gov < 1.15.9, 1.16.0 ≤ v < 1.16.11.15.9, 1.16.1
stdlibGov < 1.15.9, 1.16.0-0 ≤ v < 1.16.11.15.9, 1.16.1

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.