CVE catalog

CVE-2020-14040

golang-golang-x-text: CVE-2020-14040

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
1.84% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiangolang-golang-x-textsid0.43.0-1fixed
Debiangolang-golang-x-textforky0.43.0-1fixed
Debiangolang-golang-x-texttrixie0.22.0-1fixed
Debiangolang-golang-x-textbookworm0.7.0-1fixed
Ubuntugolang-x-text18.040.0~git20170627.0.6353ef0-1ubuntu1vulnerable
Ubuntugolang-x-text18.040.0~git20170627.0.6353ef0-1ubuntu2vulnerable
Ubuntugolang-x-text18.040.0~git20170627.0.6353ef0-1ubuntu2.1fixed
Ubuntugolang-golang-x-text20.040.3.2-3vulnerable
Ubuntugolang-golang-x-text20.040.3.2-4vulnerable
Ubuntugolang-golang-x-text20.040.3.2-4ubuntu0.1fixed
Ubuntugolang-golang-x-text22.040.3.6-1vulnerable
Ubuntugolang-golang-x-text22.040.3.7-1vulnerable
Ubuntugolang-golang-x-text22.040.3.7-1ubuntu0.20.04.1fixed
Ubuntugolang-x-text16.040+git20151019.0fe7e68-0ubuntu1vulnerable
Ubuntugolang-x-text16.040+git20151217.cf49866-0ubuntu1vulnerable
Ubuntugolang-x-text18.040.0~git20170627.0.6353ef0-1ubuntu1vulnerable
Ubuntugolang-x-text18.040.0~git20170627.0.6353ef0-1ubuntu2vulnerable
Ubuntugolang-x-text18.040.0~git20170627.0.6353ef0-1ubuntu2.1fixed
Ubuntugolang-golang-x-text20.040.3.2-3vulnerable
Ubuntugolang-golang-x-text20.040.3.2-4vulnerable
Ubuntugolang-golang-x-text20.040.3.2-4ubuntu0.1fixed
Ubuntugolang-x-text20.040.3.2-1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiangolang-golang-x-textsourcesid0.3.3-1not yet assignedNot reported[964272]
Debiangolang-golang-x-textsourceforky0.3.3-1not yet assignedNot reported[964272]
Debiangolang-golang-x-textsourcetrixie0.3.3-1not yet assignedNot reported[964272]
Debiangolang-golang-x-textsourcebookworm0.3.3-1not yet assignedNot reported[964272]
Ubuntugolang-x-textdeb18.040.0~git20170627.0.6353ef0-1ubuntu2.1Not reportedUSN-5873-1Not reported
Ubuntugolang-golang-x-textdeb20.040.3.2-4ubuntu0.1Not reportedUSN-5873-1Not reported
Ubuntugolang-golang-x-textdeb22.040.3.7-1ubuntu0.20.04.1Not reportedUSN-5873-1Not reported
Ubuntugolang-x-textdeb18.040.0~git20170627.0.6353ef0-1ubuntu2.1Not reportedUBUNTU-CVE-2020-14040Not reported
Ubuntugolang-golang-x-textdeb20.040.3.2-4ubuntu0.1Not reportedUBUNTU-CVE-2020-14040Not reported

[Debian bug #964272]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [golang-golang-x-text]

    Details (4)
    • 0.7.0-1 · all · bookworm

      Fixed · Fixed: 0.3.3-1

      dsa · golang-golang-x-text · debian · bookworm; dsa · golang-golang-x-text · debian · 12

    • 0.7.0-1 · all · bookworm

      Fixed · Fixed: 0.3.3-1

      dsa · golang-golang-x-text · debian · bookworm; dsa · golang-golang-x-text · debian · 12

    • 0.16.0-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 0.3.3-1

      dsa · golang-golang-x-text · debian · bookworm; dsa · golang-golang-x-text · debian · 12

    • 0.16.0-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 0.3.3-1

      dsa · golang-golang-x-text · debian · bookworm; dsa · golang-golang-x-text · debian · 12

[Debian 13 (Trixie)]

  • Source package: [golang-golang-x-text]

    Details (4)
    • 0.22.0-1 · all · trixie

      Fixed · Fixed: 0.3.3-1

      dsa · golang-golang-x-text · debian · 13

    • 0.22.0-1 · all · trixie

      Fixed · Fixed: 0.3.3-1

      dsa · golang-golang-x-text · debian · 13

    • 0.36.0-1~bpo13+1 · all · trixie-backports

      Fixed · Fixed: 0.3.3-1

      dsa · golang-golang-x-text · debian · 13

    • 0.36.0-1~bpo13+1 · all · trixie-backports

      Fixed · Fixed: 0.3.3-1

      dsa · golang-golang-x-text · debian · 13

Observed:

References