CVE-2020-14040
Go packages · CVE-2020-14040
The x/text package before 0.3.3 for Go has a vulnerability in encoding/unicode that could lead to the UTF-16 decoder entering an infinite loop, causing the program to crash or run out of memory. An attacker could provide a single byte to a UTF16 decoder instantiated with UseBOM or ExpectBOM to trigger an infinite loop if the String function on the Decoder is called, or the Decoder is passed to golang.org/x/text/transform.String.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 1.886% · 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-19T16:57:41.748Z. Public exploit availability is not used to set this status.
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T16:57:41.748Z | CISA KEV |
| cvss | unknown | unknown | unknown |
| epss | verified | 2026-11-19T16:04:27.485Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:37.001Z | OSV |
| affected | verified | 2026-11-19T12:55:25.737Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:55:25.737Z | 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/forum/#%21topic/golang-announce/bXVeAmGOqz0",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TACQFZDPA7AUR6TRZBCX2RGRFSDYLI7O/",
"name": "FEDORA-2020-a55f130272",
"tags": [
"vendor-advisory",
"x_refsource_FEDORA",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-04T12:32:14.681Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-5rcv-m4m3-hfh7",
"aliases": [
"CVE-2020-14040",
"GO-2020-0015"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.3.3"
}
]
}
],
"package": {
"name": "golang.org/x/text",
"purl": "pkg:golang/golang.org/x/text",
"ecosystem": "Go"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-5rcv-m4m3-hfh7/GHSA-5rcv-m4m3-hfh7.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P/RL:O/RC:C"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-14040",
"type": "ADVISORY"
},
{
"url": "https://github.com/golang/go/issues/39491",
"type": "WEB"
},
{
"url": "https://github.com/golang/text/commit/23ae387dee1f90d29a23c0e87ee0b46038fbed0e",
"type": "WEB"
},
{
"url": "https://go-review.googlesource.com/c/text/+/238238",
"type": "WEB"
},
{
"url": "https://go.dev/cl/238238",
"type": "WEB"
},
{
"url": "https://go.dev/issue/39491",
"type": "WEB"
},
{
"url": "https://go.googlesource.com/text/+/23ae387dee1f90d29a23c0e87ee0b46038fbed0e",
"type": "WEB"
},
{
"url": "https://groups.google.com/forum/#!topic/golang-announce/bXVeAmGOqz0",
"type": "WEB"
},
{
"url": "https://groups.google.com/g/golang-announce/c/bXVeAmGOqz0",
"type": "WEB"
},
{
"url": "https://lists.fedoraproject.org/archives/list/[email protected]/message/TACQFZDPA7AUR6TRZBCX2RGRFSDYLI7O",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-400",
"CWE-835"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": null,
"github_reviewed_at": "2021-05-12T14:54:58Z"
}
}Archived source JSONOSV · osv · full conditions
{
"id": "GO-2020-0015",
"aliases": [
"CVE-2020-14040",
"GHSA-5rcv-m4m3-hfh7"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.3.3"
}
]
}
],
"package": {
"name": "golang.org/x/text",
"purl": "pkg:golang/golang.org/x/text",
"ecosystem": "Go"
},
"versions": [],
"database_specific": {
"source": "https://vuln.go.dev/ID/GO-2020-0015.json"
},
"ecosystem_specific": {
"imports": [
{
"path": "golang.org/x/text/encoding/unicode",
"symbols": [
"bomOverride.Transform",
"utf16Decoder.Transform"
]
},
{
"path": "golang.org/x/text/transform",
"symbols": [
"String"
]
}
]
}
}
],
"severity": [],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://go.dev/cl/238238",
"type": "FIX"
},
{
"url": "https://go.googlesource.com/text/+/23ae387dee1f90d29a23c0e87ee0b46038fbed0e",
"type": "FIX"
},
{
"url": "https://go.dev/issue/39491",
"type": "REPORT"
},
{
"url": "https://groups.google.com/g/golang-announce/c/bXVeAmGOqz0",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2020-0015",
"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 | golang.org/x/text | Not a distribution channel | 0.3.3 | 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:37.001ZArchived source JSON
Source publication: 2021-05-18T18:34:35.000Z
Source modification: 2026-09-10T03:49:04.603ZDocument fingerprint
f908a6b2ec00d38fc908b0e5d8ddc230533dd12bc2a411f09351f07d04322d99 - OSVConsulted: 2026-11-19T12:52:37.001ZArchived source JSON
Source publication: 2021-04-14T20:04:52.000Z
Source modification: 2026-02-04T03:02:32.031ZDocument fingerprint
f908a6b2ec00d38fc908b0e5d8ddc230533dd12bc2a411f09351f07d04322d99 - CVE ProgramConsulted: 2026-11-19T12:55:25.737ZArchived source JSON
Source publication: 2020-06-17T19:22:31.000Z
Source modification: 2024-08-04T12:32:14.681ZDocument fingerprint
3a5d7ff15c4d0d0fa504fc497a4606be7a2b7ac1bf7926317b6de215c700b61d - CISA KEVConsulted: 2026-11-19T16:57:41.748ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:27.485ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
79c410884fd78eafbdac79b6945a23346f1d7d13a5f88e79a579a85f2c56a9fc
Official status history
- UNKNOWN → PUBLISHED · · evidence