{"cve":"CVE-2021-38561","nvd":{"published":"2022-12-26T06:15:10.560","modified":"2026-06-17T04:02:21.823","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-125"],"references":["https://deps.dev/advisory/OSV/GO-2021-0113","https://go.googlesource.com/text/+/383b2e75a7a4198c42f8f87833eefb772868a56f","https://groups.google.com/g/golang-announce","https://pkg.go.dev/golang.org/x/text/language","https://deps.dev/advisory/OSV/GO-2021-0113"],"products":["golang:text"],"source":"nvd","synced_at":"2026-10-19T21:37:31.370122805+00:00"},"epss":{"cve":"CVE-2021-38561","score":0.01484,"percentile":0.73997,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-ppp9-7jff-5vj2","url":"https://osv.dev/vulnerability/GHSA-ppp9-7jff-5vj2","summary":"golang.org/x/text/language Out-of-bounds Read vulnerability","modified":"2026-09-10T03:49:50.331764985Z","packages":[{"ecosystem":"Go","name":"golang.org/x/text","purl":"pkg:golang/golang.org/x/text","ranges":["<0.3.7"],"fixed":["0.3.7"]}]},{"id":"GO-2021-0113","url":"https://osv.dev/vulnerability/GO-2021-0113","summary":"Out-of-bounds read in golang.org/x/text/language","modified":"2026-02-04T02:31:07.297346Z","packages":[{"ecosystem":"Go","name":"golang.org/x/text","purl":"pkg:golang/golang.org/x/text","ranges":["<0.3.7"],"fixed":["0.3.7"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}