CVE-2021-46195: GCC v12.0 was discovered to contain an uncontrolled recursion via the component libiberty/rust-demangle.c.
Noroxi assessment
Priority: Monitor (action score 22/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.85% (FIRST EPSS); higher than 59% of all records.
- Someone with local access to the system can trigger it. No account or password is required. A user must open a link or visit a page. No special conditions are required; it is repeatable.
- Fixed version: mingw32-cpp (AlmaLinux:9) 12.0.1-11.2.el9; mingw32-gcc (AlmaLinux:9) 12.0.1-11.2.el9; mingw32-gcc-c++ (AlmaLinux:9) 12.0.1-11.2.el9.
Low priority for now. Upgrade to mingw32-cpp (AlmaLinux:9) 12.0.1-11.2.el9; mingw32-gcc (AlmaLinux:9) 12.0.1-11.2.el9; mingw32-gcc-c++ (AlmaLinux:9) 12.0.1-11.2.el9 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Jan 14, 2022
- Updated
- Oct 14, 2026
- EPSS
- 0.8% · 59th percentile
- CWE
- CWE-674
Report tools
Action score
22
Low priority for now.
- CVSS
- 22 / 40 · 5.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.8%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
Vulnrichment: CISA's decision-tree inputs.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| gnu | gcc | cpe:2.3:a:gnu:gcc |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- gnu gcc12.0
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:9 | mingw32-cpp | before 12.0.1-11.2.el9 | 12.0.1-11.2.el9 |
| AlmaLinux:9 | mingw32-gcc | before 12.0.1-11.2.el9 | 12.0.1-11.2.el9 |
| AlmaLinux:9 | mingw32-gcc-c++ | before 12.0.1-11.2.el9 | 12.0.1-11.2.el9 |
| AlmaLinux:9 | mingw32-libgcc | before 12.0.1-11.2.el9 | 12.0.1-11.2.el9 |
| AlmaLinux:9 | mingw64-cpp | before 12.0.1-11.2.el9 | 12.0.1-11.2.el9 |
| AlmaLinux:9 | mingw64-gcc | before 12.0.1-11.2.el9 | 12.0.1-11.2.el9 |
| AlmaLinux:9 | mingw64-gcc-c++ | before 12.0.1-11.2.el9 | 12.0.1-11.2.el9 |
| AlmaLinux:9 | mingw64-libgcc | before 12.0.1-11.2.el9 | 12.0.1-11.2.el9 |
| Debian:12 | binutils | before 2.37.90.20220207-1 | 2.37.90.20220207-1 |
| openSUSE:Leap 15.3 | binutils | before 2.39-150100.7.40.1 | 2.39-150100.7.40.1 |
| openSUSE:Leap 15.3 | cross-aarch64-binutils | before 2.39-150100.7.40.1 | 2.39-150100.7.40.1 |
| openSUSE:Leap 15.3 | cross-arm-binutils | before 2.39-150100.7.40.1 | 2.39-150100.7.40.1 |
| openSUSE:Leap 15.3 | cross-avr-binutils | before 2.39-150100.7.40.1 | 2.39-150100.7.40.1 |
| openSUSE:Leap 15.3 | cross-epiphany-binutils | before 2.39-150100.7.40.1 | 2.39-150100.7.40.1 |
| openSUSE:Leap 15.3 | cross-hppa-binutils | before 2.39-150100.7.40.1 | 2.39-150100.7.40.1 |
| openSUSE:Leap 15.3 | cross-hppa64-binutils | before 2.39-150100.7.40.1 | 2.39-150100.7.40.1 |
| openSUSE:Leap 15.3 | cross-i386-binutils | before 2.39-150100.7.40.1 | 2.39-150100.7.40.1 |
| openSUSE:Leap 15.3 | cross-ia64-binutils | before 2.39-150100.7.40.1 | 2.39-150100.7.40.1 |
| openSUSE:Leap 15.3 | cross-m68k-binutils | before 2.39-150100.7.40.1 | 2.39-150100.7.40.1 |
| openSUSE:Leap 15.3 | cross-mips-binutils | before 2.39-150100.7.40.1 | 2.39-150100.7.40.1 |
| openSUSE:Leap 15.3 | cross-ppc-binutils | before 2.39-150100.7.40.1 | 2.39-150100.7.40.1 |
| openSUSE:Leap 15.3 | cross-ppc64-binutils | before 2.39-150100.7.40.1 | 2.39-150100.7.40.1 |
| openSUSE:Leap 15.3 | cross-ppc64le-binutils | before 2.39-150100.7.40.1 | 2.39-150100.7.40.1 |
| openSUSE:Leap 15.3 | cross-riscv64-binutils | before 2.39-150100.7.40.1 | 2.39-150100.7.40.1 |
+41
Same product
gnu: all recordsOther highest-scoring records for the same primary product.
- CVE-2018-12886stack_protect_prologue in cfgexpand.c and stack_protect_epilogue in function.c in GNU Compiler Collection (GCC) 4.1 through 8 (under…33Monitor
- CVE-2002-2439Integer overflow in the new[] operator in gcc before 4.8.0 allows attackers to have unspecified impacts.31Monitor
- CVE-2019-15847The POWER9 backend in GNU Compiler Collection (GCC) before version 10 could optimize multiple calls of the __builtin_darn intrinsic into a…31Monitor
Published before and after this one in the same product
- ← EarlierCVE-2015-5276Nov 17, 2015 · The std::random_device class in libstdc++ in the GNU Compiler Collection (aka GCC) before 4.9.4 does not properly handle short reads from…21Monitor
- ← EarlierCVE-2017-11671Jul 26, 2017 · Under certain circumstances, the ix86_expand_builtin function in i386.c in GNU Compiler Collection (GCC) version 4.6, 4.7, 4.8, 4.9, 5…16Monitor
- Later →CVE-2022-27943Mar 26, 2022 · libiberty/rust-demangle.c in GNU GCC 11.2 allows stack consumption in demangle_const, as demonstrated by nm-new.22Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| almalinux:mingw32-cpp | 12.0.1-11.2.el9 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:mingw32-gcc | 12.0.1-11.2.el9 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:mingw32-gcc-c++ | 12.0.1-11.2.el9 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:mingw32-libgcc | 12.0.1-11.2.el9 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:mingw64-cpp | 12.0.1-11.2.el9 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:mingw64-gcc | 12.0.1-11.2.el9 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:mingw64-gcc-c++ | 12.0.1-11.2.el9 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:mingw64-libgcc | 12.0.1-11.2.el9 · AlmaLinux:9 | Package registry (OSV) |
| debian:binutils | 2.37.90.20220207-1 · Debian:12 | Package registry (OSV) |
| opensuse:binutils | 2.39-150100.7.40.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:cross-aarch64-binutils | 2.39-150100.7.40.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:cross-arm-binutils | 2.39-150100.7.40.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:cross-avr-binutils | 2.39-150100.7.40.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:cross-epiphany-binutils | 2.39-150100.7.40.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:cross-hppa-binutils | 2.39-150100.7.40.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:cross-hppa64-binutils | 2.39-150100.7.40.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:cross-i386-binutils | 2.39-150100.7.40.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:cross-ia64-binutils | 2.39-150100.7.40.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:cross-m68k-binutils | 2.39-150100.7.40.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:cross-mips-binutils | 2.39-150100.7.40.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:cross-ppc-binutils | 2.39-150100.7.40.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| red hat:mingw-gcc | 0:12.0.1-11.2.el9 · Red Hat:enterprise_linux:9::crb | Package registry (OSV) |
| red hat:mingw-gcc-debuginfo | 0:12.0.1-11.2.el9 · Red Hat:enterprise_linux:9::crb | Package registry (OSV) |
| red hat:mingw-gcc-debugsource | 0:12.0.1-11.2.el9 · Red Hat:enterprise_linux:9::crb | Package registry (OSV) |
| red hat:mingw32-cpp | 0:12.0.1-11.2.el9 · Red Hat:enterprise_linux:9::crb | Package registry (OSV) |
| red hat:mingw32-cpp-debuginfo | 0:12.0.1-11.2.el9 · Red Hat:enterprise_linux:9::crb | Package registry (OSV) |
| red hat:mingw32-gcc | 0:12.0.1-11.2.el9 · Red Hat:enterprise_linux:9::crb | Package registry (OSV) |
| red hat:mingw32-gcc-c++ | 0:12.0.1-11.2.el9 · Red Hat:enterprise_linux:9::crb | Package registry (OSV) |
| red hat:mingw32-gcc-c++-debuginfo | 0:12.0.1-11.2.el9 · Red Hat:enterprise_linux:9::crb | Package registry (OSV) |
| red hat:mingw32-gcc-debuginfo | 0:12.0.1-11.2.el9 · Red Hat:enterprise_linux:9::crb | Package registry (OSV) |
+6
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- No account or password is required.
- A user must open a link or visit a page.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
CWE-674 · Uncontrolled RecursionCVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
—
Change log (2)
- SSVC exploitation— → none
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Vendor advisories and official records. Exploit/PoC links are deliberately left out.