{"id":"CVE-2021-38561","published":"2022-12-26T00:00:00Z","modified":"2025-04-14T16:15:14Z","title":"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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.01484,"percentile":0.74627,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"references":[{"url":"https://groups.google.com/g/golang-announce","tags":[]},{"url":"https://go.googlesource.com/text/+/383b2e75a7a4198c42f8f87833eefb772868a56f","tags":[]},{"url":"https://deps.dev/advisory/OSV/GO-2021-0113","tags":[]},{"url":"https://pkg.go.dev/golang.org/x/text/language","tags":[]}],"priority":{"score":20.2,"factors":[{"name":"EPSS percentile","points":14.93},{"name":"CVSS severity","points":5.25}]},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-14T16:13:55.516416Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"golang.org/x/text","vulnerableRanges":["<0.3.7"],"patched":["0.3.7"],"from":["GHSA-ppp9-7jff-5vj2","GO-2021-0113"],"provenance":"source"}],"summary":{"text":"The golang.org/x/text/language package in golang.org/x/text, prior to version 0.3.7, mishandles index calculation during BCP 47 language tag parsing, causing an out-of-bounds read that panics.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:28Z"},"euvd":{"id":"EUVD-2022-7707","exploited":false,"provenance":"source"}}