# CVE-2021-38561: golang.org/x/text/language Out-of-bounds Read vulnerability

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.49%, higher than 74% of CVEs (2026-12-01)
- Published: 2021-10-06T17:51:21.000Z
- Modified: 2026-09-10T03:49:50.331Z
- Also known as: GHSA-ppp9-7jff-5vj2, GO-2021-0113
- Related: CGA-rxmv-qq37-m2jc, RHBA-2023:1649, RHSA-2023:0407
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- golang.org/x/text (Go): before 0.3.7
- golang text: before 0.3.7

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://groups.google.com/g/golang-announce> (mailing-list, third-party-advisory, web)
- <https://go.googlesource.com/text/+/383b2e75a7a4198c42f8f87833eefb772868a56f> (fix, mailing-list, patch, vendor-advisory, web)
- <https://deps.dev/advisory/OSV/GO-2021-0113> (patch, third-party-advisory, web)
- <https://pkg.go.dev/golang.org/x/text/language> (product, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-38561> (advisory)
- <https://go.dev/cl/340830> (fix, web)
- <https://pkg.go.dev/vuln/GO-2021-0113> (web)

## Sources

- CVE List: [CVE-2021-38561](https://www.cve.org/CVERecord?id=CVE-2021-38561), CVE Terms of Use, modified 2025-04-14
- GitHub Advisory Database: [GHSA-ppp9-7jff-5vj2](https://github.com/advisories/GHSA-ppp9-7jff-5vj2), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2021-0113](https://pkg.go.dev/vuln/GO-2021-0113), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2021-38561](https://nvd.nist.gov/vuln/detail/CVE-2021-38561), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-38561 · Whole record: https://cve.day/CVE-2021-38561.json · Rebuilt by cve.day 2026-11-25T22:58:08.003Z
