What is CWE-121?
A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).
CWE-121 is a variant-level weakness in MITRE’s Common Weakness Enumeration, with a MITRE likelihood of exploit of High. Applicable platforms: Language: Memory-Unsafe; Language: C; Language: C++; Technology: Not Technology-Specific.
Source: MITRE CWE (CWE-121 definition, reproduced verbatim). Counts and linkage below are Threadlinqs data.
Consequences
- Availability — Modify Memory, DoS: Crash, Exit, or Restart, DoS: Resource Consumption (CPU), DoS: Resource Consumption (Memory). Buffer overflows generally lead to crashes. Other attacks leading to lack of availability are possible, including putting the program into an infinite loop.
- Integrity, Confidentiality, Availability, Access Control — Modify Memory, Execute Unauthorized Code or Commands, Bypass Protection Mechanism. Buffer overflows often can be used to execute arbitrary code, which is usually outside the scope of a program's implicit security policy.
- Integrity, Confidentiality, Availability, Access Control, Other — Modify Memory, Execute Unauthorized Code or Commands, Bypass Protection Mechanism, Other. When the consequence is arbitrary code execution, this can often be used to subvert any other security service.
Source: MITRE CWE, common consequences.
How CWE-121 is exploited in the wild
Threadlinqs maps 109 CVEs to CWE-121, published between 2022-03-25 and 2026-11-10. 4 are listed in CISA’s Known Exploited Vulnerabilities catalog, the authoritative record of exploitation in the wild, and 1 is tied to ransomware campaigns. By CVSS v3 severity the set splits into 33 critical, 47 high, 13 medium, 1 low. The highest EPSS score in the set is 99.9% (CVE-2025-0282), the modelled probability of exploitation in the next 30 days. 79 tracked threats reference CWE-121 directly or through a CVE it covers; the most recent is “F5 BIG-IP: Six Critical Data-Plane Stack Buffer Overflows (CVE-2026-123637, CVE-2026-121805, CVE-2026-120292, CVE-2026-120285, CVE-2026-116953, CVE-2026-120722) Crash TMM, May Allow RCE” (2026-11-18). Affected products concentrate in Microsoft (23), Fortinet (9), FreeIPMI (5), among 40 vendors in total.
Vulnerabilities (CVEs)
Showing 40 of 109 CVEs mapped to CWE-121, CISA KEV first, then by CVSS score.
- CVE-2025-53521 — CISA KEV · CVSS 9.8 critical · EPSS 2.2% · published 2025-10-15
- CVE-2025-0282 — CISA KEV · CVSS 9 critical · EPSS 99.9% · published 2025-01-08
- CVE-2026-7273 — CISA KEV · CVSS 8.8 high · EPSS 0.3% · published 2026-06-16
- CVE-2021-27137 — CISA KEV · CVSS 8.1 high · EPSS 3.9% · published 2026-07-16
- CVE-2026-94089 — CVSS 10 critical · EPSS 0.9% · published 2026-09-20
- CVE-2026-79911 — CVSS 10 critical · EPSS 0.6% · published 2026-08-25
- CVE-2026-82592 — CVSS 9.9 critical · EPSS 0.7% · published 2026-08-30
- CVE-2026-19959 — CVSS 9.9 critical · EPSS 0.4% · published 2026-08-16
- CVE-2023-33308 — CVSS 9.8 critical · EPSS 2.1% · published 2023-07-26
- CVE-2026-88156 — CVSS 9.8 critical · EPSS 1.1% · published 2026-10-13
- CVE-2026-41089 — CVSS 9.8 critical · EPSS 0.9% · published 2026-05-12
- CVE-2026-62878 — CVSS 9.8 critical · EPSS 0.9% · published 2026-08-11
- CVE-2026-72982 — CVSS 9.8 critical · EPSS 0.9% · published 2026-09-08
- CVE-2026-103780 — CVSS 9.8 critical · EPSS 0.8% · published 2026-10-28
- CVE-2026-27671 — CVSS 9.8 critical · EPSS 0.6% · published 2026-06-09
- CVE-2026-33792 — CVSS 9.8 critical · EPSS 0.6% · published 2026-10-14
- CVE-2026-33796 — CVSS 9.8 critical · EPSS 0.5% · published 2026-10-14
- CVE-2026-76485 — CVSS 9.8 critical · EPSS 0.5% · published 2026-10-07
- CVE-2026-76486 — CVSS 9.8 critical · EPSS 0.5% · published 2026-10-07
- CVE-2026-76501 — CVSS 9.8 critical · EPSS 0.5% · published 2026-10-07
- CVE-2026-12627 — CVSS 9.8 critical · EPSS 0.4% · published 2026-10-01
- CVE-2026-102182 — CVSS 9.8 critical · EPSS 0.4% · published 2026-10-14
- CVE-2026-85504 — CVSS 9.8 critical · EPSS 0.4% · published 2026-09-04
- CVE-2026-85506 — CVSS 9.8 critical · EPSS 0.4% · published 2026-09-04
- CVE-2026-85507 — CVSS 9.8 critical · EPSS 0.4% · published 2026-09-04
- CVE-2026-85508 — CVSS 9.8 critical · EPSS 0.4% · published 2026-09-04
- CVE-2026-85509 — CVSS 9.8 critical · EPSS 0.4% · published 2026-09-04
- CVE-2026-51807 — CVSS 9.8 critical · EPSS 0.2% · published 2026-07-14
- CVE-2026-90558 — CVSS 9.8 critical · published 2026-09-12
- CVE-2026-91843 — CVSS 9.8 critical · published 2026-09-16
- CVE-2026-93372 — CVSS 9.6 critical · EPSS 0.4% · published 2026-09-17
- CVE-2025-68670 — CVSS 9.1 critical · EPSS 1.3% · published 2026-01-27
- CVE-2026-33826 — CVSS 9.1 critical · EPSS 0.5% · published 2026-04-14
- CVE-2026-26240 — CVSS 9.1 critical · EPSS 0.3% · published 2026-06-10
- CVE-2026-26241 — CVSS 9.1 critical · EPSS 0.3% · published 2026-06-10
- CVE-2025-62507 — CVSS 8.8 high · EPSS 6.7% · published 2025-11-04
- CVE-2026-4747 — CVSS 8.8 high · EPSS 1.9% · published 2026-03-26
- CVE-2026-97742 — CVSS 8.8 high · EPSS 0.9% · published 2026-10-13
- CVE-2026-5815 — CVSS 8.8 high · EPSS 0.9% · published 2026-04-08
- CVE-2026-78439 — CVSS 8.8 high · EPSS 0.8% · published 2026-09-08
Affected vendors
- Microsoft — 23 CVEs
- Fortinet — 9 CVEs
- FreeIPMI — 5 CVEs
- Google — 5 CVEs
- IBM — 5 CVEs
- QNAP Systems Inc. — 5 CVEs
- WatchGuard — 5 CVEs
- Cisco — 4 CVEs
- Juniper Networks — 4 CVEs
- NLnet Labs — 4 CVEs
- D-Link — 3 CVEs
- Siemens — 3 CVEs
Threat activity
79 tracked threats cite CWE-121; the 25 most recent are listed.
- F5 BIG-IP: Six Critical Data-Plane Stack Buffer Overflows (CVE-2026-123637, CVE-2026-121805, CVE-2026-120292, CVE-2026-120285, CVE-2026-116953, CVE-2026-120722) Crash TMM, May Allow RCECRITICAL
- Six Pre-Auth RCE Zero-Days (Stack Buffer Overflows) in Danfoss AK-SM800A Refrigeration Controllers (No CVEs Assigned)HIGH
- Forescout Vedere Labs: AI-assisted harness finds 66 new vulnerabilities across 10 legacy TCP/IP stacks used in OT/IoT (incl. Nucleus NET CVE-2026-89208, CVE-2026-102073..102076; Ethernut CVE-2026-120596)HIGH
- Six Pre-Auth RCE Zero-Days in Danfoss AK-SM800A Refrigeration Controllers (Remote Root); Related Iran-Attributed Attacks on Exposed Danfoss/Copeland Controllers in France and EuropeCRITICAL
- Microsoft Patch Tuesday November 2026: ~1,095 vulnerabilities, 64 critical, one exploited Outlook NTLM-leak spoofing zero-day (CVE-2026-124194)CRITICAL
- Intel Slim Bootloader Multiple Vulnerabilities (INTEL-SA-01526) - CVE-2026-50175, CVE-2026-35500, CVE-2026-41221, CVE-2026-41224, CVE-2026-44624, CVE-2026-28746HIGH
- Windows Active Directory RCE Vulnerability (CVE-2026-119948) Allows Code Execution Over a NetworkHIGH
- N-able N-central: 33 Alleged Zero-Day Vulnerabilities Published with PoC ("Able2Shell" XXE-to-RCE chain); Platform Taken OfflineCRITICAL
- CVE-2026-119618: Critical Unauthenticated RCE via Race Condition in Apache HTTP Server mod_http2 assign_headers()CRITICAL
- Able2Shell: 33 N-able N-central Vulnerabilities Chained into RCE and Root Privilege Escalation; N-able Takes Hosted Cloud OfflineCRITICAL
- Siemens SSA-698820: Multiple Fortigate NGFW Vulnerabilities (before V7.4.4) on RUGGEDCOM APE1808 DevicesHIGH
- CISA KEV Addition: SonicWall SonicOS SSLVPN Single-Factor Authentication / SAML Bypass Vulnerability (CVE-2026-19868)CRITICAL
- Multiple Vulnerabilities in Fortigate NGFW Before V7.4.1 on Siemens RUGGEDCOM APE1808 Devices (SSA-366067)CRITICAL
- Zyxel GS1900 Switch Zero-Day (CVE-2026-107441) Exploited by Kapibala in Red Heron Campaign, ~1,000 Switches CompromisedCRITICAL
- Dell PowerProtect Data Domain multiple vulnerabilities fixed (DSA-2026-416, NCSC-2026-0460)CRITICAL
- lz1 LZ77 Decompression Stack Buffer Overflow — Public Exploit PoC with Full ROP Chain to Reverse Shell (STAR Labs Summer Pwnables 2025)MEDIUM
- WatchGuard Fireware OS: 7 Critical Vulnerabilities Allowing Remote Code Execution (CVE-2026-103594, CVE-2026-112710, CVE-2026-112709, CVE-2026-93865, CVE-2026-93857, CVE-2026-93866, CVE-2026-103593)CRITICAL
- Adobe, Veeam, Juniper Networks Patch Critical Vulnerabilities (Campaign Classic APSB26-162, Connect APSB26-182, Veeam B365 8.6 / B&R 13.1.2, Juniper Session Smart Router JSA112183)CRITICAL
- Multiple Vulnerabilities Fixed in Cisco Snort 3 (NCSC-2026-0450; CVE-2026-20043, CVE-2026-76524 and 11 others)CRITICAL
- Operation Escaneo: MexicanMafia (PanchoVilla) Intrusion Campaign Against Mexican Government Agencies and Latin American Financial InstitutionsHIGH
- Citrix XenServer 8.4/9 Vulnerabilities Enabling Host Compromise (CVE-2026-79610, CVE-2026-102700, CVE-2026-102701, CVE-2026-79611)HIGH
- Multiple vulnerabilities fixed in IBM Guardium Data Protection 12.0-12.2 (CVE-2026-75875, CVE-2026-80381, +9)CRITICAL
- Microsoft Patches Two Dozen High-Severity RCE Flaws in Office (Word, Excel, Outlook, PowerPoint, SharePoint) - October 2026HIGH
- F5 NGINX (CVE-2026-15176, CVE-2026-93479, CVE-2026-97205) and Juniper Junos OS / Junos OS Evolved / JCNR Critical Vulnerabilities PatchedCRITICAL
- CVE-2026-20797: Copeland XWEB Pro Unauthenticated Stack-Based Buffer Overflow in API RouteMEDIUM
Mitigations
- Operation, Build and Compilation / Environment Hardening: Use automatic buffer overflow detection mechanisms that are offered by certain compilers or compiler extensions. Examples include: the Microsoft Visual Studio /GS flag, Fedora/Red Hat FORTIFY_SOURCE GCC flag, StackGuard, and ProPolice, which provide various mechanisms including canary-based detection and range/index checking. D3-SFCV (Stack Frame Canary Validation) from D3FEND [REF-1334] discusses canary-based detection in detail.
- Architecture and Design: Use an abstraction library to abstract away risky APIs. Not a complete solution.
- Implementation: Implement and perform bounds checking on input.
- Implementation: Do not use dangerous functions such as gets. Use safer, equivalent functions which check for boundary errors.
- Operation, Build and Compilation / Environment Hardening: Run or compile the software using features or extensions that randomly arrange the positions of a program's executable and libraries in memory. Because this makes the addresses unpredictable, it can prevent an attacker from reliably jumping to exploitable code. Examples include Address Space Layout Randomization (ASLR) [REF-58] [REF-60] and Position-Independent Executables (PIE) [REF-64]. Imported modules may be similarly realigned if their default memory addresses conflict with other modules, in a process known as "rebasing" (for Windows) and "prelinking" (for Linux) [REF-1332] using randomly generated addresses. ASLR for libraries cannot be used in conjunction with prelink since it would…
Source: MITRE CWE, potential mitigations.
Detection methods (MITRE CWE)
- Fuzzing (effectiveness: High): Fuzz testing (fuzzing) is a powerful technique for generating large numbers of diverse inputs - either randomly or algorithmically - and dynamically invoking the code with those inputs. Even with random inputs, it is often capable of generating unexpected results such as crashes, memory corruption, or resource consumption. Fuzzing effectively produces repeatable test cases that clearly indicate bugs, which helps developers to diagnose the issues.
- Automated Static Analysis (effectiveness: High): Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
- Automated Dynamic Analysis (effectiveness: Moderate): Use tools that are integrated during compilation to insert runtime error-checking mechanisms related to memory safety errors, such as AddressSanitizer (ASan) for C/C++ [REF-1518].
Source: MITRE CWE, detection methods. Threadlinqs detection rules for the threats above are Blue tier and higher.