CVE-2021-27918
Go · CVE-2021-27918
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 2.474% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | unknown | unknown | unknown |
| epss | verified | 2026-11-19T16:04:29.829Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:39.236Z | OSV |
| affected | verified | 2026-11-19T12:55:45.496Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:55:45.496Z | CVE Program |
Affected versions and configuration
n/a n/a; default status: unknown: n/a [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "n/a",
"product": "n/a",
"versions": [
{
"status": "affected",
"version": "n/a"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://groups.google.com/g/golang-announce/c/MfiLYjG-RAw",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://security.gentoo.org/glsa/202208-02",
"name": "GLSA-202208-02",
"tags": [
"vendor-advisory",
"x_refsource_GENTOO",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-03T21:33:16.406Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GO-2021-0234",
"aliases": [
"BIT-golang-2021-27918",
"CVE-2021-27918"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.15.9"
},
{
"introduced": "1.16.0-0"
},
{
"fixed": "1.16.1"
}
]
}
],
"package": {
"name": "stdlib",
"purl": "pkg:golang/stdlib",
"ecosystem": "Go"
},
"versions": [],
"database_specific": {
"source": "https://vuln.go.dev/ID/GO-2021-0234.json"
},
"ecosystem_specific": {
"imports": [
{
"path": "encoding/xml",
"symbols": [
"Decoder.Token"
]
}
]
}
}
],
"severity": [],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://go.dev/cl/300391",
"type": "FIX"
},
{
"url": "https://go.googlesource.com/go/+/d0b79e3513a29628f3599dc8860666b6eed75372",
"type": "FIX"
},
{
"url": "https://go.dev/issue/44913",
"type": "REPORT"
},
{
"url": "https://groups.google.com/g/golang-announce/c/MfiLYjG-RAw",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2021-0234",
"review_status": "REVIEWED"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | Go / package | stdlib | Not a distribution channel | 1.15.9 | Official record |
| ecosystem-boundary | Go / package | stdlib | Not a distribution channel | 1.16.1 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:39.236ZArchived source JSON
Source publication: 2022-02-17T17:34:24.000Z
Source modification: 2024-05-20T16:03:47.000ZDocument fingerprint
4ca7818b395ba1078372d8aa5d2c3c1d10796ecab94cc944cbdcb6a19ce4ed17 - CVE ProgramConsulted: 2026-11-19T12:55:45.496ZArchived source JSON
Source publication: 2021-03-10T23:54:43.000Z
Source modification: 2024-08-03T21:33:16.406ZDocument fingerprint
194d0d9208eb01c79f1b58e23d759837be2cc97390be405de80c03967bdc275d - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:29.829ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
0ada5949615a4f73336c326c2872c6b13ce677871d7a909901276520e3f556a8
Official status history
- UNKNOWN → PUBLISHED · · evidence