{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-46195 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2021-46195 is a medium-severity denial of service vulnerability in n/a, published on 14 Jan 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-46195 and fix it if it is affected.\n\nWhat it is: CVE-2021-46195 is a medium-severity denial of service vulnerability in n/a, published on 14 Jan 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2021-46195 in the wild and no public exploit code.\n\nAffected product: n/a. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-46195/ (Markdown: https://insights.sbomify.com/CVE-2021-46195/index.md)","id":"CVE-2021-46195","markdown":"https://insights.sbomify.com/CVE-2021-46195/index.md","name":"CVE-2021-46195","record":{"aliases":["ALSA-2022:8415","CLSA-2026-1780063601","DEBIAN-CVE-2021-46195","GHSA-gr6j-4vhj-c665","RHSA-2022:8415","UBUNTU-CVE-2021-46195"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"GCC compiler","requires_auth":"none","summary":"Attackers can cause a Denial of Service in GCC v12.0 by triggering uncontrolled recursion in the Rust demangler, consuming excessive CPU and memory.","user_interaction":"required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"gcc","vendor":"gnu"}],"cvss":{"score":5.5,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-674","name":"Uncontrolled Recursion"}],"description":"GCC v12.0 was discovered to contain an uncontrolled recursion via the component libiberty/rust-demangle.c. This vulnerability allows attackers to cause a Denial of Service (DoS) by consuming excessive CPU and memory resources.","ecosystems":["AlmaLinux:9","Red Hat:enterprise_linux:9::crb"],"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":"Denial of service in n/a","id":"CVE-2021-46195","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"denial_of_service","year":"2021"},"n_packages":37,"n_references":1,"next":{"headline":"SQL injection in n/a","id":"CVE-2021-46198"},"packages":[{"ecosystem":"AlmaLinux:9","fixed":["12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"mingw32-cpp","purl":"pkg:rpm/almalinux/mingw32-cpp","source":"ALSA-2022:8415"},{"ecosystem":"AlmaLinux:9","fixed":["12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"mingw32-gcc","purl":"pkg:rpm/almalinux/mingw32-gcc","source":"ALSA-2022:8415"},{"ecosystem":"AlmaLinux:9","fixed":["12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"mingw32-gcc-c++","purl":"pkg:rpm/almalinux/mingw32-gcc-c%2B%2B","source":"ALSA-2022:8415"},{"ecosystem":"AlmaLinux:9","fixed":["12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"mingw32-libgcc","purl":"pkg:rpm/almalinux/mingw32-libgcc","source":"ALSA-2022:8415"},{"ecosystem":"AlmaLinux:9","fixed":["12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"mingw64-cpp","purl":"pkg:rpm/almalinux/mingw64-cpp","source":"ALSA-2022:8415"},{"ecosystem":"AlmaLinux:9","fixed":["12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"mingw64-gcc","purl":"pkg:rpm/almalinux/mingw64-gcc","source":"ALSA-2022:8415"},{"ecosystem":"AlmaLinux:9","fixed":["12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"mingw64-gcc-c++","purl":"pkg:rpm/almalinux/mingw64-gcc-c%2B%2B","source":"ALSA-2022:8415"},{"ecosystem":"AlmaLinux:9","fixed":["12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"mingw64-libgcc","purl":"pkg:rpm/almalinux/mingw64-libgcc","source":"ALSA-2022:8415"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"mingw-gcc","purl":"pkg:rpm/redhat/mingw-gcc","source":"RHSA-2022:8415"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"mingw-gcc-debuginfo","purl":"pkg:rpm/redhat/mingw-gcc-debuginfo","source":"RHSA-2022:8415"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"mingw-gcc-debugsource","purl":"pkg:rpm/redhat/mingw-gcc-debugsource","source":"RHSA-2022:8415"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"mingw32-cpp","purl":"pkg:rpm/redhat/mingw32-cpp","source":"RHSA-2022:8415"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"mingw32-cpp-debuginfo","purl":"pkg:rpm/redhat/mingw32-cpp-debuginfo","source":"RHSA-2022:8415"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"mingw32-gcc","purl":"pkg:rpm/redhat/mingw32-gcc","source":"RHSA-2022:8415"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"mingw32-gcc-c++","purl":"pkg:rpm/redhat/mingw32-gcc-c%2B%2B","source":"RHSA-2022:8415"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"mingw32-gcc-c++-debuginfo","purl":"pkg:rpm/redhat/mingw32-gcc-c%2B%2B-debuginfo","source":"RHSA-2022:8415"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"mingw32-gcc-debuginfo","purl":"pkg:rpm/redhat/mingw32-gcc-debuginfo","source":"RHSA-2022:8415"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"mingw32-gcc-gfortran-debuginfo","purl":"pkg:rpm/redhat/mingw32-gcc-gfortran-debuginfo","source":"RHSA-2022:8415"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"mingw32-gcc-objc++-debuginfo","purl":"pkg:rpm/redhat/mingw32-gcc-objc%2B%2B-debuginfo","source":"RHSA-2022:8415"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"mingw32-gcc-objc-debuginfo","purl":"pkg:rpm/redhat/mingw32-gcc-objc-debuginfo","source":"RHSA-2022:8415"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"mingw32-libgcc","purl":"pkg:rpm/redhat/mingw32-libgcc","source":"RHSA-2022:8415"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"mingw64-cpp","purl":"pkg:rpm/redhat/mingw64-cpp","source":"RHSA-2022:8415"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"mingw64-cpp-debuginfo","purl":"pkg:rpm/redhat/mingw64-cpp-debuginfo","source":"RHSA-2022:8415"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"mingw64-gcc","purl":"pkg:rpm/redhat/mingw64-gcc","source":"RHSA-2022:8415"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"mingw64-gcc-c++","purl":"pkg:rpm/redhat/mingw64-gcc-c%2B%2B","source":"RHSA-2022:8415"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"mingw64-gcc-c++-debuginfo","purl":"pkg:rpm/redhat/mingw64-gcc-c%2B%2B-debuginfo","source":"RHSA-2022:8415"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"mingw64-gcc-debuginfo","purl":"pkg:rpm/redhat/mingw64-gcc-debuginfo","source":"RHSA-2022:8415"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"mingw64-gcc-gfortran-debuginfo","purl":"pkg:rpm/redhat/mingw64-gcc-gfortran-debuginfo","source":"RHSA-2022:8415"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"mingw64-gcc-objc++-debuginfo","purl":"pkg:rpm/redhat/mingw64-gcc-objc%2B%2B-debuginfo","source":"RHSA-2022:8415"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"mingw64-gcc-objc-debuginfo","purl":"pkg:rpm/redhat/mingw64-gcc-objc-debuginfo","source":"RHSA-2022:8415"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"mingw64-libgcc","purl":"pkg:rpm/redhat/mingw64-libgcc","source":"RHSA-2022:8415"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"ucrt64-cpp-debuginfo","purl":"pkg:rpm/redhat/ucrt64-cpp-debuginfo","source":"RHSA-2022:8415"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"ucrt64-gcc-c++-debuginfo","purl":"pkg:rpm/redhat/ucrt64-gcc-c%2B%2B-debuginfo","source":"RHSA-2022:8415"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"ucrt64-gcc-debuginfo","purl":"pkg:rpm/redhat/ucrt64-gcc-debuginfo","source":"RHSA-2022:8415"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"ucrt64-gcc-gfortran-debuginfo","purl":"pkg:rpm/redhat/ucrt64-gcc-gfortran-debuginfo","source":"RHSA-2022:8415"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"ucrt64-gcc-objc++-debuginfo","purl":"pkg:rpm/redhat/ucrt64-gcc-objc%2B%2B-debuginfo","source":"RHSA-2022:8415"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:12.0.1-11.2.el9"],"introduced":["0"],"last_affected":[],"package":"ucrt64-gcc-objc-debuginfo","purl":"pkg:rpm/redhat/ucrt64-gcc-objc-debuginfo","source":"RHSA-2022:8415"}],"prev":{"headline":"Denial of service in n/a","id":"CVE-2021-46179"},"products":["n/a"],"published":"2022-01-14","related":[{"cvss_score":8.1,"headline":"Security feature bypass in n/a","id":"CVE-2018-12886","kev_date_added":null,"published":"2019-05-22"},{"cvss_score":7.8,"headline":"Integer overflow in the new[] operator in gcc before 4.8.0 allows attackers to have unspecified impacts.","id":"CVE-2002-2439","kev_date_added":null,"published":"2019-10-23"},{"cvss_score":7.5,"headline":"Weak cryptography in n/a","id":"CVE-2019-15847","kev_date_added":null,"published":"2019-09-02"},{"cvss_score":7.5,"headline":"Memory corruption in n/a","id":"CVE-2008-1367","kev_date_added":null,"published":"2008-03-17"},{"cvss_score":6.8,"headline":"Integer overflow in n/a","id":"CVE-2008-1685","kev_date_added":null,"published":"2008-04-06"},{"cvss_score":5,"headline":"Weak cryptography in n/a","id":"CVE-2015-5276","kev_date_added":null,"published":"2015-11-17"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"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":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-14","vendors":["n/a"]},"summary":"Attackers can cause a Denial of Service in GCC v12.0 by triggering uncontrolled recursion in the Rust demangler, consuming excessive CPU and memory.","url":"https://insights.sbomify.com/CVE-2021-46195/"}