Vulnerabilities · 2021 · Golang
CVE-2021-38561
Golang Text vulnerability
golang.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.
Affected products
Text. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Golang Text runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- go.googlesource.com/text/+/383b2e75a7a4198c42f8f87833eefb772868a56f · Patch
- pkg.go.dev/golang.org/x/text/language · Vendor Advisory
- deps.dev/advisory/OSV/GO-2021-0113 · Patch
- groups.google.com/g/golang-announce · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-38561
- cve.org/CVERecord?id=CVE-2021-38561
More vulnerabilities in Golang products
CVE-2026-42506CVE-2026-42502CVE-2026-27136CVE-2026-25681CVE-2026-25680CVE-2025-68121CVE-2025-68119CVE-2025-61732All 172
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.