CVE-2021-38561: golang.org/x/text - Out-of-Bounds Read
- Cve: CVE-2021-38561
- Name: golang.org/x/text - Out-of-Bounds Read
- 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.
- Impact: Attackers can cause application crashes or denial-of-service by triggering out-of-bounds read during language tag parsing.
- Remediation: Update to version 0.3.7 or later.
- Vulnerability type: out_of_bounds_rw
- Vulnerability impact: denial_of_service
- Requirement type: user_interaction
- Requirements: Attacker needs to provide untrusted user input for parsing
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.01484
- Epss percentile: 0.74663
- Assignee: [email protected]
- Published at: 2022-12-26T06:15:10Z
- Age in days: 1428
- Modified at: 2026-06-17T04:02:21Z
- Patch available: yes
- References total: 4
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-38561
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-125 | Out-of-bounds Read |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://deps.dev/advisory/OSV/GO-2021-0113 | Patch, Third Party Advisory |
| https://go.googlesource.com/text/+/383b2e75a7a4198c42f8f87833eefb772868a56f | Mailing List, Patch, Vendor Advisory |
| https://pkg.go.dev/golang.org/x/text/language | Product, Vendor Advisory |
| https://groups.google.com/g/golang-announce | Mailing List, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| golang:text | < 0.3.7 | no | nvd | /v1/products/golang/text |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| golang/text | product | yes | /v1/repositories/golang/text |
Index
- Repositories: 256
- Repositories high signal: 7
- Packages: 1
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts