{"api_version":"1","generated_at":"2026-04-22T23:31:42+00:00","cve":"CVE-2021-38561","urls":{"html":"https://cve.report/CVE-2021-38561","api":"https://cve.report/api/cve/CVE-2021-38561.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-38561","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-38561"},"summary":{"title":"CVE-2021-38561","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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2022-12-26 06:15:00","updated_at":"2023-01-05 04:52:00"},"problem_types":["CWE-125"],"metrics":[],"references":[{"url":"https://go.googlesource.com/text/+/383b2e75a7a4198c42f8f87833eefb772868a56f","name":"https://go.googlesource.com/text/+/383b2e75a7a4198c42f8f87833eefb772868a56f","refsource":"MISC","tags":[],"title":"383b2e75a7a4198c42f8f87833eefb772868a56f - text - Git at Google","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://deps.dev/advisory/OSV/GO-2021-0113","name":"https://deps.dev/advisory/OSV/GO-2021-0113","refsource":"CONFIRM","tags":[],"title":"Open Source Insights","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://pkg.go.dev/golang.org/x/text/language","name":"https://pkg.go.dev/golang.org/x/text/language","refsource":"MISC","tags":[],"title":"language package - golang.org/x/text/language - pkg.go.dev","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://groups.google.com/g/golang-announce","name":"https://groups.google.com/g/golang-announce","refsource":"MISC","tags":[],"title":"golang-announce - Google Groups","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-38561","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38561","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"38561","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"golang","cpe5":"text","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-38561","qid":"182735","title":"Debian Security Update for golang-golang-x-text (CVE-2021-38561)"},{"cve":"CVE-2021-38561","qid":"199182","title":"Ubuntu Security Notification for Go Text Vulnerabilities (USN-5873-1)"},{"cve":"CVE-2021-38561","qid":"378883","title":"Splunk Enterprise August Third Party Package Updates (SVD-2023-0808)"},{"cve":"CVE-2021-38561","qid":"502288","title":"Alpine Linux Security Update for git-lfs"},{"cve":"CVE-2021-38561","qid":"6120011","title":"Google COS Security Update for dev-go/text (CVE-2021-38561)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2021-38561","ASSIGNER":"cve@mitre.org","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"n/a","product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a","version_affected":"?"}]}}]}}]}},"references":{"reference_data":[{"url":"https://groups.google.com/g/golang-announce","refsource":"MISC","name":"https://groups.google.com/g/golang-announce"},{"url":"https://go.googlesource.com/text/+/383b2e75a7a4198c42f8f87833eefb772868a56f","refsource":"MISC","name":"https://go.googlesource.com/text/+/383b2e75a7a4198c42f8f87833eefb772868a56f"},{"url":"https://deps.dev/advisory/OSV/GO-2021-0113","refsource":"MISC","name":"https://deps.dev/advisory/OSV/GO-2021-0113"},{"url":"https://pkg.go.dev/golang.org/x/text/language","refsource":"MISC","name":"https://pkg.go.dev/golang.org/x/text/language"}]}},"nvd":{"publishedDate":"2022-12-26 06:15:00","lastModifiedDate":"2023-01-05 04:52:00","problem_types":["CWE-125"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:golang:text:*:*:*:*:*:*:*:*","versionEndExcluding":"0.3.7","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"38561","Ordinal":"214225","Title":"CVE-2021-38561","CVE":"CVE-2021-38561","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"38561","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}