Synced 20 Jun 2026 01:50 UTC Account
← All products

CVE-2021-27918

HIGH severity · CVSS 7.5 · CWE-835
7.5CVSS HIGH

Summary

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.

Impact & exploitability

Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
Confidentiality impactNone
Integrity impactNone
Availability impactHigh
Exploit probability (EPSS)3%

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products we track (1)

Go

Recommendation

Apply the vendor fix promptly. Open any affected product above for its exact safe version.