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.
CVSS score
5.5/10
010
Medium · v3.1 (NVD)EPSS score
0.80%
0%100%
Low · +0.02 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1reference
Advisory lineage
Upstream 0 · Downstream 3 · Related 3Timeline
- 14-01-2022PublishedVulnerability first disclosed.
- 14-10-2026Last 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 versionsMedium 5.5Preferred score · NVD (NIST)
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HSources4 sources · 3.3–5.5
- OSV · Red hatEcosystem advisory · calculated3.3LowCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:LDiffers
- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Medium 4.3Preferred score · NVD (NIST)
AV:N/AC:M/Au:N/C:N/I:N/A:PSourcesSingle source
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 score0.80%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (gcc.gnu.org)
Maturity: unknown
Weaknesses
CWE · root causeAffected 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
- gcc12.0
Ubuntu1 product
- gcc-11All versions (No fix recorded)
4 vendors · 29 products