PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2020-14040: 
NixOS vulnerability analysis and mitigation

Overview

CVE-2020-14040 affects the x/text package for Go versions before 0.3.3. The vulnerability was discovered in the encoding/unicode component and was disclosed on June 17, 2020. The affected component is the UTF-16 decoder implementation within the package (NVD).

Technical details

The vulnerability exists in the encoding/unicode component where the UTF-16 decoder can enter an infinite loop. This occurs when a single byte is provided to a UTF16 decoder that is instantiated with UseBOM or ExpectBOM parameters, specifically when either the String function on the Decoder is called or the Decoder is passed to golang.org/x/text/transform.String. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (HIGH) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

When exploited, this vulnerability can cause the program to crash or run out of memory due to the infinite loop condition. This results in a denial of service condition, affecting the availability of the system or application using the vulnerable component (NVD).

Exploitability

An attacker can trigger this vulnerability by providing a single byte to a UTF16 decoder that has been instantiated with specific parameters (UseBOM or ExpectBOM). The exploitation requires no special privileges or user interaction, making it relatively straightforward to execute (NVD).

Mitigation and workarounds

The vulnerability has been fixed in version 0.3.3 of the x/text package. Users should upgrade to this version or later to mitigate the vulnerability. Red Hat has also released security updates for affected products, including go-toolset:rhel8 (Red Hat Security).

Additional resources


Source: This report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-95634HIGH8.6
  • NixOS logoNixOS
  • c2patool
NoYesOct 13, 2026
CVE-2026-95633HIGH7.5
  • NixOS logoNixOS
  • c2patool
NoYesOct 13, 2026
CVE-2026-95632HIGH7.5
  • NixOS logoNixOS
  • c2patool
NoYesOct 13, 2026
CVE-2026-48378MEDIUM5.3
  • NixOS logoNixOS
  • c2patool
NoYesOct 13, 2026
CVE-2026-48377MEDIUM5.3
  • NixOS logoNixOS
  • c2patool
NoYesOct 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management