🛡️ CVE-2021-27918 — golang
Description
Infinite loop when decoding inputs in encoding/xml
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.
Affected software
CVE-2021-27918 is recorded against 2 packages.
- golang
- stdlib
Timeline and source
Published on 6 March 2024 and last revised on 3 April 2025. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
groups.google.com (Web)
security.gentoo.org (Web)
nvd.nist.gov (Web)
Details
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| golang | — | — |
| stdlib | — | — |
References
Similar Threats
- Unknown ALSA-2024:2562
- Unknown ALSA-2024:1963
- Unknown ALSA-2024:1962
- Unknown ALSA-2024:1462
- Unknown ALSA-2024:1472
More CVE 2021 advisories
Browse all of CVE 2021 in the advisory index.
Site Security Check
Is golang part of your stack?
CVE-2021-27918 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.