CVE-2021-27918
Last modified
CVE-2021-27918 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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.. EPSS estimates a 2.54% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Golang | Go | < 1.15.9 |
| Golang | Go | >= 1.16.0, < 1.16.1 |
References
- https://groups.google.com/g/golang-announce/c/MfiLYjG-RAwMailing List, Third Party Advisory
- https://security.gentoo.org/glsa/202208-02Third Party Advisory
- https://groups.google.com/g/golang-announce/c/MfiLYjG-RAwMailing List, Third Party Advisory
- https://security.gentoo.org/glsa/202208-02Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-27918?
How severe is CVE-2021-27918?
How do I fix CVE-2021-27918?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-27912Mautic versions before 3.3.4/4.0.0 are vulnerable to an inli…5.4
- CVE-2021-27913The function mt_rand is used to generate session tokens, thi…3.5
- CVE-2021-27914A cross-site scripting (XSS) vulnerability in the installer …4.8
- CVE-2021-27915Prior to the patched version, there is an XSS vulnerability …9
- CVE-2021-27916Prior to the patched version, logged in users of Mautic are …8.1
- CVE-2021-27917Prior to this patch, a stored XSS vulnerability existed in t…5.4
- CVE-2021-27919archive/zip in Go 1.16.x before 1.16.1 allows attackers to c…5.5
- CVE-2021-27921Pillow before 8.1.2 allows attackers to cause a denial of se…7.5
- CVE-2021-27922Pillow before 8.1.2 allows attackers to cause a denial of se…7.5
- CVE-2021-27923Pillow before 8.1.2 allows attackers to cause a denial of se…7.5
- CVE-2021-27924An issue was discovered in Couchbase Server 6.x through 6.6.…5.9
- CVE-2021-27925An issue was discovered in Couchbase Server 6.5.x and 6.6.x …4.4
Are you affected by CVE-2021-27918?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
