CVEvulnerability
CVE-2021-38561
7.5 HIGH
Official page ↗
- Status
- Modified
- Published
- 2022-12-26
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 7.5 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CVSS 3.1 (134c704f-9b21-4f2e-91b3-4a467353bcc0)
- 7.5 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-125
Description
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 configurations
• golang text (< 0.3.7)
Related
Weakness · CWE (1)
- CWE-125 Out-of-bounds Read weakness
References
- https://deps.dev/advisory/OSV/GO-2021-0113 Patch, Third Party Advisory
- https://go.googlesource.com/text/+/383b2e75a7a4198c42f8f87833eefb772868a56f Mailing List, Patch, Vendor Advisory
- https://groups.google.com/g/golang-announce Mailing List, Third Party Advisory
- https://pkg.go.dev/golang.org/x/text/language Product, Vendor Advisory
- https://deps.dev/advisory/OSV/GO-2021-0113 Patch, Third Party Advisory
- https://go.googlesource.com/text/+/383b2e75a7a4198c42f8f87833eefb772868a56f Mailing List, Patch, Vendor Advisory
- https://groups.google.com/g/golang-announce Mailing List, Third Party Advisory
- https://pkg.go.dev/golang.org/x/text/language Product, Vendor Advisory