5.5

CVE-2021-46195: gnu gcc Uncontrolled Recursion

CVSS: 5.5v3.1MediumModified
AliasesRHSA-2022:8415UBUNTU-CVE-2021-46195DEBIAN-CVE-2021-46195
Published 14-01-2022Last modified 14-10-2026

Vulnerability summary

CVE-2021-46195 is a medium (CVSS 5.5) Uncontrolled Recursion vulnerability in gnu gcc. EPSS estimates a 0.80% chance of exploitation in the next 30 days, higher than 55.7% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
32/100
0100
Medium · default modelHow is this calculated?
CVSS score
5.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.80%
0%100%
Low · +0.02 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1reference

Advisory lineage

Upstream 0 · Downstream 3 · Related 3

Timeline

  1. 14-01-2022
    PublishedVulnerability first disclosed.
  2. 14-10-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 4 sources · 2 versions

EPSS trend

Probability

0.80%

Chance of exploitation in the next 30 days

Percentile

56%

Versus all other CVEs

30-day change

+0.02 pp

From 0.78% on 19-09-2026

19-09-202619-10-2026
EPSS score
0.80%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (gcc.gnu.org)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Redhat26 products
  • mingw-gcc< 0:12.0.1-11.2.el9
  • mingw-gcc-debuginfo< 0:12.0.1-11.2.el9
  • mingw-gcc-debugsource< 0:12.0.1-11.2.el9
  • mingw32-cpp< 0:12.0.1-11.2.el9
  • mingw32-cpp-debuginfo< 0:12.0.1-11.2.el9
Debian1 product
  • binutils< 2.37.90.20220207-1
Gnu1 product
Ubuntu1 product
  • gcc-11All versions (No fix recorded)

4 vendors · 29 products

References

15 links
Show all 15 references