CVE-2021-38561

Summary

CVECVE-2021-38561
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-12-26 06:15:00 UTC
Updated2023-01-05 04:52:00 UTC
Descriptiongolang.org/x/text/language in golang.org/x/text before 0.3.7 can panic with an out-of-bounds read during BCP 47 language tag parsing. Index calculation is mishandled. If parsing untrusted user input, this can be used as a vector for a denial-of-service attack.

Risk And Classification

Problem Types: CWE-125

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Golang Text All All All All

References

ReferenceSourceLinkTags
383b2e75a7a4198c42f8f87833eefb772868a56f - text - Git at Google MISC go.googlesource.com
Open Source Insights CONFIRM deps.dev
language package - golang.org/x/text/language - pkg.go.dev MISC pkg.go.dev
golang-announce - Google Groups MISC groups.google.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 182735 Debian Security Update for golang-golang-x-text (CVE-2021-38561)
  • 199182 Ubuntu Security Notification for Go Text Vulnerabilities (USN-5873-1)
  • 378883 Splunk Enterprise August Third Party Package Updates (SVD-2023-0808)
  • 502288 Alpine Linux Security Update for git-lfs
  • 6120011 Google COS Security Update for dev-go/text (CVE-2021-38561)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report