CVE-2021-38561
NixOS vulnerability analysis and mitigation

Overview

golang.org/x/text/language in golang.org/x/text before version 0.3.7 contains a vulnerability that can cause a panic with an out-of-bounds read during BCP 47 language tag parsing. The vulnerability was assigned CVE-2021-38561 and affects the index calculation handling during language tag parsing (CVE Mitre).

Technical details

The vulnerability is caused by mishandled index calculations during BCP 47 language tag parsing in the golang.org/x/text/language package. The issue is classified as an out-of-bounds read (CWE-125) vulnerability. The CVSS v3.1 base score is 7.5 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

When parsing untrusted user input, this vulnerability can be exploited as a vector for a denial-of-service attack. The impact primarily affects the availability of the service, as indicated by the CVSS metrics showing high availability impact but no confidentiality or integrity impacts (NVD).

Mitigation and workarounds

The vulnerability has been fixed in golang.org/x/text version 0.3.7. Users should upgrade to this version or later to mitigate the vulnerability. The fix was implemented through a patch that addresses the index calculation issue (Go Source).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-14330CRITICAL9.8
  • NixOSNixOS
  • rhel10::firefox-flatpak
NoYesDec 09, 2025
CVE-2025-14329HIGH8.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesDec 09, 2025
CVE-2025-14333HIGH8.1
  • NixOSNixOS
  • firefox
NoYesDec 09, 2025
CVE-2025-14332HIGH7.3
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesDec 09, 2025
CVE-2025-14331MEDIUM6.5
  • NixOSNixOS
  • rhel10::thunderbird-flatpak
NoYesDec 09, 2025

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