{"api_version":"1","generated_at":"2026-04-23T01:14:52+00:00","cve":"CVE-2021-27918","urls":{"html":"https://cve.report/CVE-2021-27918","api":"https://cve.report/api/cve/CVE-2021-27918.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-27918","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-27918"},"summary":{"title":"CVE-2021-27918","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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2021-03-11 00:15:00","updated_at":"2022-12-13 16:28:00"},"problem_types":["CWE-835"],"metrics":[],"references":[{"url":"https://security.gentoo.org/glsa/202208-02","name":"GLSA-202208-02","refsource":"GENTOO","tags":[],"title":"Go: Multiple Vulnerabilities (GLSA 202208-02) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://groups.google.com/g/golang-announce/c/MfiLYjG-RAw","name":"https://groups.google.com/g/golang-announce/c/MfiLYjG-RAw","refsource":"MISC","tags":["Mailing List","Third Party Advisory"],"title":"[security] Go 1.16.1 and Go 1.15.9 are released","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-27918","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-27918","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"27918","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"golang","cpe5":"go","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-27918","qid":"159237","title":"Oracle Enterprise Linux Security Update for olcne (ELSA-2021-9267)"},{"cve":"CVE-2021-27918","qid":"159238","title":"Oracle Enterprise Linux Security Update for olcne (ELSA-2021-9268)"},{"cve":"CVE-2021-27918","qid":"159347","title":"Oracle Enterprise Linux Security Update for go-toolset:ol8 (ELSA-2021-3076)"},{"cve":"CVE-2021-27918","qid":"174832","title":"SUSE Enterprise Linux Security update for go1.15 (SUSE-SU-2021:0938-1)"},{"cve":"CVE-2021-27918","qid":"174835","title":"SUSE Enterprise Linux Security update for go1.16 (SUSE-SU-2021:0937-1)"},{"cve":"CVE-2021-27918","qid":"174851","title":"SUSE Enterprise Linux Security update for go1.15 (SUSE-SU-2021:0938-1)"},{"cve":"CVE-2021-27918","qid":"174854","title":"SUSE Enterprise Linux Security update for go1.16 (SUSE-SU-2021:0937-1)"},{"cve":"CVE-2021-27918","qid":"179711","title":"Debian Security Update for golang-1.15 (CVE-2021-27918)"},{"cve":"CVE-2021-27918","qid":"239549","title":"Red Hat Update for go-toolset:rhel8 (RHSA-2021:3076)"},{"cve":"CVE-2021-27918","qid":"354041","title":"Amazon Linux Security Advisory for golang : ALAS2-2022-1830"},{"cve":"CVE-2021-27918","qid":"377560","title":"Alibaba Cloud Linux Security Update for go-toolset:rhel8 (ALINUX3-SA-2021:0060)"},{"cve":"CVE-2021-27918","qid":"378883","title":"Splunk Enterprise August Third Party Package Updates (SVD-2023-0808)"},{"cve":"CVE-2021-27918","qid":"501568","title":"Alpine Linux Security Update for go"},{"cve":"CVE-2021-27918","qid":"501857","title":"Alpine Linux Security Update for go"},{"cve":"CVE-2021-27918","qid":"670419","title":"EulerOS Security Update for golang (EulerOS-SA-2021-1980)"},{"cve":"CVE-2021-27918","qid":"670439","title":"EulerOS Security Update for golang (EulerOS-SA-2021-2061)"},{"cve":"CVE-2021-27918","qid":"670450","title":"EulerOS Security Update for golang (EulerOS-SA-2021-2050)"},{"cve":"CVE-2021-27918","qid":"670459","title":"EulerOS Security Update for golang (EulerOS-SA-2021-2217)"},{"cve":"CVE-2021-27918","qid":"690234","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for go (72709326-81f7-11eb-950a-00155d646401)"},{"cve":"CVE-2021-27918","qid":"710584","title":"Gentoo Linux Go Multiple Vulnerabilities (GLSA 202208-02)"},{"cve":"CVE-2021-27918","qid":"750292","title":"OpenSUSE Security Update for go1.15 (openSUSE-SU-2021:0480-1)"},{"cve":"CVE-2021-27918","qid":"900159","title":"CBL-Mariner Linux Security Update for golang 1.15.7"},{"cve":"CVE-2021-27918","qid":"903202","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for golang (3968)"},{"cve":"CVE-2021-27918","qid":"907749","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for golang (3968-1)"},{"cve":"CVE-2021-27918","qid":"940126","title":"AlmaLinux Security Update for go-toolset:rhel8 (ALSA-2021:3076)"},{"cve":"CVE-2021-27918","qid":"960708","title":"Rocky Linux Security Update for go-toolset:rhel8 (RLSA-2021:3076)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2021-27918","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"refsource":"MISC","name":"https://groups.google.com/g/golang-announce/c/MfiLYjG-RAw","url":"https://groups.google.com/g/golang-announce/c/MfiLYjG-RAw"},{"refsource":"GENTOO","name":"GLSA-202208-02","url":"https://security.gentoo.org/glsa/202208-02"}]}},"nvd":{"publishedDate":"2021-03-11 00:15:00","lastModifiedDate":"2022-12-13 16:28:00","problem_types":["CWE-835"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:N/I:N/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"PARTIAL","baseScore":5},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*","versionEndExcluding":"1.15.9","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*","versionStartIncluding":"1.16.0","versionEndExcluding":"1.16.1","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"27918","Ordinal":"203033","Title":"CVE-2021-27918","CVE":"CVE-2021-27918","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"27918","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"27918","Ordinal":"2","NoteData":"2021-03-10","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"27918","Ordinal":"3","NoteData":"2021-03-10","Type":"Other","Title":"Modified"}]}}}