Skip to main content

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
All KEV statistics→
  • 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
CVECVSS
CVE-2026-7273KEV
Zyxel GS1900 Series Switches Stack-Based Buffer Overflow Vulnerability
8.8
CVE-2021-27137KEV
DD-WRT Stack-Based Buffer Overflow Vulnerability
8.1
CVE-2025-53521KEV
BigIP APM Vulnerability
9.8
CVE-2008-0015KEV
Microsoft Windows Video ActiveX Control Remote Code Execution Vulnerability
8.8
CVE-2025-20352KEV
Cisco IOS and IOS XE Software SNMP Denial of Service and Remote Code Execution Vulnerability
7.7
CVE-2025-32756KEV
Fortinet Multiple Products Stack-Based Buffer Overflow Vulnerability
9.6
CVE-2025-42599KEV
Qualitia Active! Mail Stack-Based Buffer Overflow Vulnerability
9.8
CVE-2025-22457KEV
Ivanti Connect Secure, Policy Secure, and ZTA Gateways Stack-Based Buffer Overflow Vulnerability
9.0
CVE-2025-0282KEV
Ivanti Connect Secure, Policy Secure, and ZTA Gateways Stack-Based Buffer Overflow Vulnerability
9.0
CVE-2013-2597KEV
Code Aurora ACDB Audio Driver Stack-based Buffer Overflow Vulnerability
8.4
CVE-2018-5002KEV
Adobe Flash Player Stack-based Buffer Overflow Vulnerability
7.8
CVE-2014-9163KEV
Adobe Flash Player Stack-Based Buffer Overflow Vulnerability
7.8
CVE-2009-0927KEV
Adobe Reader and Adobe Acrobat Stack-Based Buffer Overflow Vulnerability
8.8
CVE-2022-20699KEV
Cisco Small Business RV Series Routers Vulnerabilities
10.0
CVE-2022-20708KEV
Cisco Small Business RV Series Routers Vulnerabilities
10.0
CVE-2022-20701KEV
Cisco Small Business RV Series Routers Vulnerabilities
10.0
CVE-2022-20703KEV
Cisco Small Business RV Series Routers Vulnerabilities
10.0
CVE-2022-20700KEV
Cisco Small Business RV Series Routers Vulnerabilities
10.0
CVE-2021-20038KEV
SonicWall SMA 100 Appliances Stack-Based Buffer Overflow Vulnerability
9.8
CVE-2020-5735KEV
Amcrest Cameras and NVR Stack-based Buffer Overflow Vulnerability
8.8
CVE-2026-41089
Windows Netlogon Remote Code Execution Vulnerability
9.8
CVE-2026-2329
Grandstream GXP1600 VoIP Phones - Unauthenticated stack buffer overflow
9.3
CVE-2026-0826
Poly Voice – Possible Remote Control of Certain Poly Devices
9.2
CVE-2026-10187
Totolink N300RH Web Management wireless.so setWiFiBasicConfig stack-based overflow
9.8
CVE-2026-11499
Tenda HG7/HG9/HG10 formDOMAINBLK stack-based overflow
9.8

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.

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.