golang-golang-x-text — security advisory
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.
- Products
- golang-golang-x-text
- Affected versions
- Not specified
- Fixed versions
- 0.3.3-1
- CVEs
- CVE-2020-14040
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 12:39 UTC · Revision 1
Source evidence
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.
osv:DEBIAN-CVE-2020-14040
golang-golang-x-text
Fixed versions: 0.3.3-1
golang-golang-x-text
Fixed versions: 0.3.3-1
golang-golang-x-text
Fixed versions: 0.3.3-1
Complete source record
{
"id": "b53ad7798dc5dac7cd12e12dacf7294ec4569106fd6c0bbcb948cc7bcabe4bed",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2020-14040",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2020-14040",
"summary": "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.",
"evidence": "osv:DEBIAN-CVE-2020-14040",
"products": [
{
"name": {
"value": "golang-golang-x-text",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.3.3-1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "golang-golang-x-text",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.3.3-1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "golang-golang-x-text",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.3.3-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2020-14040",
"aliases": [
"DEBIAN-CVE-2020-14040"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.3.3-1"
}
]
}
],
"package": {
"name": "golang-golang-x-text",
"purl": "pkg:deb/debian/golang-golang-x-text?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2020-14040.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.3.3-1"
}
]
}
],
"package": {
"name": "golang-golang-x-text",
"purl": "pkg:deb/debian/golang-golang-x-text?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2020-14040.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.3.3-1"
}
]
}
],
"package": {
"name": "golang-golang-x-text",
"purl": "pkg:deb/debian/golang-golang-x-text?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2020-14040.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-26T12:00:40.587718709Z",
"provider": "osv",
"upstream": [
"CVE-2020-14040"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2020-14040"
]
},
"related_cves": [
{
"value": "CVE-2020-14040",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 451263,
"published_at": "2020-06-17T20:15:09.993+00:00"
}