Stack-based Buffer Overflow (CWE-121)
CWE-121 is a Variant in which the overwritten buffer is on the stack. MITRE notes that stack overflow is an ambiguous term because it can also mean stack exhaustion from deep recursion, so it discourages that phrasing.
Updated
About CWE-121
Buffer overflows generally lead to crashes, and other availability attacks such as forcing an infinite loop are possible. Overwriting stack memory can also allow arbitrary code execution, which may then subvert other security services.
- MITRE name
- Stack-based Buffer Overflow
- Abstraction
- Variant: linked to a certain type of product, typically a specific language or technology
- Status
- Draft
Also Known As
- Stack Overflow
- Stack Buffer Overflow
Mitigations
- Implement bounds checking on all input written to stack buffers.
- Replace dangerous functions with safer equivalents that check for boundary errors.
- Enable compiler stack protections such as canary-based detection (/GS, StackGuard, ProPolice) as defense in depth.
- Use ASLR and position-independent executables to make code locations unpredictable.
- Wrap risky APIs in an abstraction library, noting this is not a complete solution.
Detection
Fuzzing and automated static analysis are rated highly effective, and runtime checkers such as AddressSanitizer help during testing.
CWE-121 in the KEV Catalog
as of 2026-11-14- 20 CISA KEV entries name Stack-based Buffer Overflow (CWE-121) in their CVE record, tied for 25th among the 195 weaknesses named in the catalog.
- CISA added 0 CWE-121 entries to the KEV catalog in 2024, 5 in 2025, and 4 so far in 2026.
- Cisco has the most CWE-121 entries in the CISA KEV catalog (6), followed by Adobe (3) and Ivanti (2).
- CISA marks 15% of CWE-121 KEV entries (3 of 20) as known to be used in ransomware campaigns, compared with 20% of all KEV entries.
- CISA's SSVC enrichment rates 45% of CWE-121 KEV entries with SSVC data (9 of 20) as automatable, compared with 41% across the catalog.
CWE-121 Vulnerabilities
25 CVEs| CVE | Title | Vendor | CVSS | EPSS | KEV | Published |
|---|---|---|---|---|---|---|
| CVE-2026-7273KEV Zyxel GS1900 Series Switches Stack-Based Buffer Overflow Vulnerability | Zyxel GS1900 Series Switches Stack-Based Buffer Overflow Vulnerability | Zyxel | 8.8 | 2.7% | KEV | 2026-06-16 |
| CVE-2021-27137KEV DD-WRT Stack-Based Buffer Overflow Vulnerability | DD-WRT Stack-Based Buffer Overflow Vulnerability | DD-WRT | 8.1 | 4.0% | KEV | 2026-07-16 |
| CVE-2025-53521KEV BigIP APM Vulnerability | BigIP APM Vulnerability | F5 | 9.8 | 2.3% | KEV | 2025-10-15 |
| CVE-2008-0015KEV Microsoft Windows Video ActiveX Control Remote Code Execution Vulnerability | Microsoft Windows Video ActiveX Control Remote Code Execution Vulnerability | - | 8.8 | 76.6% | KEV | 2009-07-07 |
| CVE-2025-20352KEV Cisco IOS and IOS XE Software SNMP Denial of Service and Remote Code Execution Vulnerability | Cisco IOS and IOS XE Software SNMP Denial of Service and Remote Code Execution Vulnerability | Cisco | 7.7 | 40.6% | KEV | 2025-09-24 |
| CVE-2025-32756KEV Fortinet Multiple Products Stack-Based Buffer Overflow Vulnerability | Fortinet Multiple Products Stack-Based Buffer Overflow Vulnerability | Fortinet | 9.6 | 30.9% | KEV | 2025-05-13 |
| CVE-2025-42599KEV Qualitia Active! Mail Stack-Based Buffer Overflow Vulnerability | Qualitia Active! Mail Stack-Based Buffer Overflow Vulnerability | QUALITIA CO., LTD. | 9.8 | 3.4% | KEV | 2025-04-18 |
| CVE-2025-22457KEV Ivanti Connect Secure, Policy Secure, and ZTA Gateways Stack-Based Buffer Overflow Vulnerability | Ivanti Connect Secure, Policy Secure, and ZTA Gateways Stack-Based Buffer Overflow Vulnerability | Ivanti | 9.0 | 99.981% | KEV | 2025-04-03 |
| CVE-2025-0282KEV Ivanti Connect Secure, Policy Secure, and ZTA Gateways Stack-Based Buffer Overflow Vulnerability | Ivanti Connect Secure, Policy Secure, and ZTA Gateways Stack-Based Buffer Overflow Vulnerability | Ivanti | 9.0 | 99.981% | KEV | 2025-01-08 |
| CVE-2013-2597KEV Code Aurora ACDB Audio Driver Stack-based Buffer Overflow Vulnerability | Code Aurora ACDB Audio Driver Stack-based Buffer Overflow Vulnerability | - | 8.4 | 1.5% | KEV | 2014-08-31 |
| CVE-2018-5002KEV Adobe Flash Player Stack-based Buffer Overflow Vulnerability | Adobe Flash Player Stack-based Buffer Overflow Vulnerability | - | 7.8 | 24.4% | KEV | 2018-07-09 |
| CVE-2014-9163KEV Adobe Flash Player Stack-Based Buffer Overflow Vulnerability | Adobe Flash Player Stack-Based Buffer Overflow Vulnerability | - | 7.8 | 44.9% | KEV | 2014-12-10 |
| CVE-2009-0927KEV Adobe Reader and Adobe Acrobat Stack-Based Buffer Overflow Vulnerability | Adobe Reader and Adobe Acrobat Stack-Based Buffer Overflow Vulnerability | - | 8.8 | 96.6% | KEV | 2009-03-19 |
| CVE-2022-20699KEV Cisco Small Business RV Series Routers Vulnerabilities | Cisco Small Business RV Series Routers Vulnerabilities | Cisco | 10.0 | 72.5% | KEV | 2022-02-10 |
| CVE-2022-20708KEV Cisco Small Business RV Series Routers Vulnerabilities | Cisco Small Business RV Series Routers Vulnerabilities | Cisco | 10.0 | 14.9% | KEV | 2022-02-10 |
| CVE-2022-20701KEV Cisco Small Business RV Series Routers Vulnerabilities | Cisco Small Business RV Series Routers Vulnerabilities | Cisco | 10.0 | 9.7% | KEV | 2022-02-10 |
| CVE-2022-20703KEV Cisco Small Business RV Series Routers Vulnerabilities | Cisco Small Business RV Series Routers Vulnerabilities | Cisco | 10.0 | 9.2% | KEV | 2022-02-10 |
| CVE-2022-20700KEV Cisco Small Business RV Series Routers Vulnerabilities | Cisco Small Business RV Series Routers Vulnerabilities | Cisco | 10.0 | 5.7% | KEV | 2022-02-10 |
| CVE-2021-20038KEV SonicWall SMA 100 Appliances Stack-Based Buffer Overflow Vulnerability | SonicWall SMA 100 Appliances Stack-Based Buffer Overflow Vulnerability | SonicWall | 9.8 | 99.9% | KEV | 2021-12-08 |
| CVE-2020-5735KEV Amcrest Cameras and NVR Stack-based Buffer Overflow Vulnerability | Amcrest Cameras and NVR Stack-based Buffer Overflow Vulnerability | - | 8.8 | 36.2% | KEV | 2020-04-08 |
| CVE-2026-41089 Windows Netlogon Remote Code Execution Vulnerability | Windows Netlogon Remote Code Execution Vulnerability | Microsoft | 9.8 | 78.3% | 2026-05-12 | |
| CVE-2026-2329 Grandstream GXP1600 VoIP Phones - Unauthenticated stack buffer overflow | Grandstream GXP1600 VoIP Phones - Unauthenticated stack buffer overflow | Grandstream | 9.3 | 41.7% | 2026-02-18 | |
| CVE-2026-0826 Poly Voice – Possible Remote Control of Certain Poly Devices | Poly Voice – Possible Remote Control of Certain Poly Devices | HP Inc. | 9.2 | 32.2% | 2026-06-01 | |
| CVE-2026-10187 Totolink N300RH Web Management wireless.so setWiFiBasicConfig stack-based overflow | Totolink N300RH Web Management wireless.so setWiFiBasicConfig stack-based overflow | Totolink | 9.8 | 7.3% | 2026-05-31 | |
| CVE-2026-11499 Tenda HG7/HG9/HG10 formDOMAINBLK stack-based overflow | Tenda HG7/HG9/HG10 formDOMAINBLK stack-based overflow | Tenda | 9.8 | 6.6% | 2026-06-08 |
Frequently Asked Questions
What is CWE-121?→
CWE-121 is a stack-based buffer overflow: data written beyond a buffer that was allocated on the call stack.
Why does MITRE avoid the term 'stack overflow'?→
The phrase is also used for stack exhaustion caused by excessive recursion. MITRE discourages it for either case because of that ambiguity.
How many exploited vulnerabilities are classified as CWE-121?→
This database lists 25 CVE records mapped to CWE-121 by their CVE Numbering Authority. 20 of them are in the CISA Known Exploited Vulnerabilities catalog, and CISA links 3 to known ransomware campaigns. Examples include CVE-2026-7273, CVE-2021-27137, CVE-2025-53521.
Sources
Weakness definitions summarized from the CWE List, © The MITRE Corporation, used under the CWE Terms of Use. CWE mappings come from each CVE record's CNA. Exploited-in-the-wild data from the CISA KEV catalog (CC0). This site is not affiliated with or endorsed by MITRE or CISA.