{"id":"CVE-2021-38561","aliases":["CVE-2021-38561","GHSA-ppp9-7jff-5vj2","GO-2021-0113"],"related":["CGA-rxmv-qq37-m2jc","RHBA-2023:1649","RHSA-2023:0407"],"kind":"vulnerability","state":"published","title":"golang.org/x/text/language Out-of-bounds Read vulnerability","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"Due to improper index calculation, an incorrectly formatted language tag can cause Parse to panic via an out of bounds read. If Parse is used to process untrusted user inputs, this may be used as a vector for a denial of service attack.","format":"markdown","source":"go"},{"lang":"es","text":"golang.org/x/text/language en golang.org/x/text anterior a 0.3.7 puede entrar en pánico con una lectura fuera de los límites durante el análisis de etiquetas de idioma BCP 47. El cálculo del índice está mal manejado. Si se analizan entradas de usuarios que no son de confianza, esto se puede utilizar como vector para un ataque de Denegación de Servicio (DoS).","source":"nvd"}],"published":"2021-10-06T17:51:21.000Z","modified":"2026-09-10T03:49:50.331Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS: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,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS: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,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS: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,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS: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,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.3.7"}],"ecosystem":"Go","package":"golang.org/x/text","purl":"pkg:golang/golang.org/x/text","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.3.7"}],"ecosystem":"Go","package":"golang.org/x/text","purl":"pkg:golang/golang.org/x/text","source":"go"},{"ranges":[{"status":"affected","fixed":"0.3.7"}],"vendor":"golang","product":"text","cpe":"cpe:2.3:a:golang:text:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://groups.google.com/g/golang-announce","tags":["mailing-list","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://go.googlesource.com/text/+/383b2e75a7a4198c42f8f87833eefb772868a56f","tags":["fix","mailing-list","patch","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://deps.dev/advisory/OSV/GO-2021-0113","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://pkg.go.dev/golang.org/x/text/language","tags":["product","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38561","tags":["advisory"],"sources":["ghsa"]},{"url":"https://go.dev/cl/340830","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://pkg.go.dev/vuln/GO-2021-0113","tags":["web"],"sources":["ghsa"]}],"credits":["Guido Vranken"],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-04-14T16:13:55.516Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-38561","url":"https://www.cve.org/CVERecord?id=CVE-2021-38561","licence":"CVE Terms of Use","modified":"2025-04-14T16:15:14.817Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-ppp9-7jff-5vj2","url":"https://github.com/advisories/GHSA-ppp9-7jff-5vj2","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:50.331Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2021-0113","url":"https://pkg.go.dev/vuln/GO-2021-0113","licence":"CC-BY-4.0","modified":"2026-02-04T02:31:07.297Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-38561","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38561","licence":"Public domain","modified":"2026-06-17T04:02:21.823Z"}],"updatedAt":"2026-11-25T22:58:08.003Z","epss":{"score":0.01491,"percentile":0.74872,"date":"2026-12-01T12:00:22.000Z"}}