Security mailing lists by PureSourceCode

CVE-2020-14040

HIGH 7.5CVSS 3.1

golang.org/x/text Infinite loop

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.

Published
17 Jun 2020
Last modified
10 Sep 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-400CWE-835
Also known as
GHSA-5rcv-m4m3-hfh7GO-2020-0015
Sources
NVDJSONOSV GHSA-5rcv-m4m3-hfh7JSONOSV GO-2020-0015JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 HIGH 7.5 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
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 5.0 AV:N/AC:L/Au:N/C:N/I:N/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD golang text
cpe:2.3:a:golang:text:*:*:*:*:*:*:*:*
< 0.3.3 0.3.3
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
= 32
OSV Go golang.org/x/text < 0.3.3 0.3.3

References

History

  • 25 Nov 2026 20:31 UTC · NVD: first stored (published 17 Jun 2020)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 14 Apr 2021)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 18 May 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.