{"answers":{"affected":"3 open source packages ship an affected version, including golang.org/x/text. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-38561 in the wild and no public exploit code.","fix":"Upgrade golang.org/x/text to 0.3.7 or later.","what":"CVE-2021-38561 is a high-severity denial of service vulnerability in n/a, published on 26 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-38561 and fix it if it is affected.\n\nWhat it is: CVE-2021-38561 is a high-severity denial of service vulnerability in n/a, published on 26 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-38561 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- golang.org/x/text (Go): affected all versions; fixed in 0.3.7\n- golang.org/x/text (Go): affected all versions; fixed in 0.3.7\n- golang.org/x/text (Go): affected all versions; fixed in 0.3.7\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-38561/ (Markdown: https://insights.sbomify.com/CVE-2021-38561/index.md)","id":"CVE-2021-38561","markdown":"https://insights.sbomify.com/CVE-2021-38561/index.md","name":"CVE-2021-38561","record":{"aliases":["AZL-41221","AZL-41469","AZL-44622","AZL-44952","AZL-45375","CLEANSTART-2025-PK28736","CLEANSTART-2026-SD67923","DEBIAN-CVE-2021-38561","GHSA-ppp9-7jff-5vj2","GO-2021-0113","UBUNTU-CVE-2021-38561","openSUSE-SU-2024:12599-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Go text library","requires_auth":"none","summary":"An attacker can cause a denial of service by triggering a panic via malformed BCP 47 language tags in the Go text library.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"text","vendor":"golang"}],"cvss":{"score":7.5,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"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.","ecosystems":["Go","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"golang.org/x/text/language Out-of-bounds Read vulnerability","id":"CVE-2021-38561","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2021"},"n_packages":4,"n_references":4,"next":{"headline":"Information disclosure in n/a","id":"CVE-2021-38562"},"packages":[{"ecosystem":"Go","fixed":["0.3.7"],"introduced":["0"],"last_affected":[],"package":"golang.org/x/text","purl":null,"source":"GHSA-ppp9-7jff-5vj2"},{"ecosystem":"Go","fixed":["0.3.7"],"introduced":["0"],"last_affected":[],"package":"golang.org/x/text","purl":"pkg:golang/golang.org/x/text","source":"GHSA-ppp9-7jff-5vj2"},{"ecosystem":"Go","fixed":["0.3.7"],"introduced":["0"],"last_affected":[],"package":"golang.org/x/text","purl":"pkg:golang/golang.org/x/text","source":"GO-2021-0113"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.1.2-2.1"],"introduced":["0"],"last_affected":[],"package":"cni","purl":"pkg:rpm/opensuse/cni\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:12599-1"}],"prev":{"headline":"Cross-site scripting in n/a","id":"CVE-2021-38560"},"products":["n/a"],"published":"2022-12-26","related":[{"cvss_score":7.5,"headline":"Denial of service via crafted Accept-Language header in golang.org/x/text/language","id":"CVE-2022-32149","kev_date_added":null,"published":"2022-10-14"},{"cvss_score":7.5,"headline":"Denial of service in n/a","id":"CVE-2020-28852","kev_date_added":null,"published":"2021-01-02"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-14","vendors":["n/a"]},"summary":"An attacker can cause a denial of service by triggering a panic via malformed BCP 47 language tags in the Go text library.","url":"https://insights.sbomify.com/CVE-2021-38561/"}