{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-38561","id":"CVE-2021-38561","title":"golang.org/x/text/language Out-of-bounds Read vulnerability","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.","descriptionLong":"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.","published":"2022-12-26T00:00:00.000Z","updated":"2026-10-24T10:30:47.295390749Z","reserved":"2021-08-11T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"CISA-ADP"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"golang.org/x/text","purl":"pkg:golang/golang.org/x/text","ranges":["<0.3.7"],"fixed":["0.3.7"],"advisory":"GHSA-ppp9-7jff-5vj2"}],"cwes":["CWE-125"],"aliases":["GHSA-ppp9-7jff-5vj2","GO-2021-0113"],"references":[{"url":"https://groups.google.com/g/golang-announce","tags":["x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"url":"https://go.googlesource.com/text/+/383b2e75a7a4198c42f8f87833eefb772868a56f","tags":["x_transferred","Mailing List","Patch","Vendor Advisory","fix","web"]},{"url":"https://deps.dev/advisory/OSV/GO-2021-0113","tags":["x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://pkg.go.dev/golang.org/x/text/language","tags":["x_transferred","Product","Vendor Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38561","tags":["advisory"]},{"url":"https://go.dev/cl/340830","tags":["web","fix"]},{"url":"https://pkg.go.dev/vuln/GO-2021-0113","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.01484,"epssPercentile":0.74546,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-38561","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38561","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-38561","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-ppp9-7jff-5vj2","ok":true,"note":"GHSA-ppp9-7jff-5vj2"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-38561","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["go"],"critical":[],"attention":null}