CVE-2021-46195

CVE-2021-46195 is a medium-severity vulnerability in Gnu Gcc with a CVSS 3.x base score of 5.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-674.

Key facts

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.

Frequently asked questions

What is CVE-2021-46195?
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.
How severe is CVE-2021-46195?
CVE-2021-46195 has a CVSS 3.x base score of 5.5, rated medium severity. It is exploitable over local access with low attack complexity, requires no privileges and user interaction. Impact on confidentiality is none, integrity none, and availability high.
Is CVE-2021-46195 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (51st percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2021-46195?
CVE-2021-46195 affects Gnu Gcc. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2021-46195?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
When was CVE-2021-46195 published?
CVE-2021-46195 was published on 2022-01-14 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Gnu Gcc

All CVEs affecting Gnu Gcc →

Other CWE-674 (Uncontrolled Recursion) vulnerabilities

Browse all CWE-674 (Uncontrolled Recursion) vulnerabilities →