Skip to main content

About CWE-122

Buffer overflows generally crash the program. Heap overflows can also overwrite function pointers in memory and lead to arbitrary code execution outside the program's security policy.

MITRE name
Heap-based Buffer Overflow
Abstraction
Variant: linked to a certain type of product, typically a specific language or technology
Status
Draft

Also Known As

  • Heap Overflow
  • Heap Buffer Overflow

Mitigations

  • Use a language or compiler that performs automatic bounds checking.
  • Implement bounds checking on input and avoid unsafe functions in favor of equivalents that enforce buffer limits.
  • Enable compiler buffer overflow detection, such as FORTIFY_SOURCE or the Visual Studio /GS flag, as defense in depth.
  • Build with ASLR and position-independent executables so memory addresses are harder to predict.
  • Use OS-level preventive features for additional defense in depth.

Detection
Fuzzing is rated highly effective. Compiler-integrated runtime checkers such as AddressSanitizer give moderate coverage and report the error condition rather than the original mistake.

CWE-122 in the KEV Catalog

as of 2026-11-23
All KEV statistics→
  • 24 CISA KEV entries name Heap-based Buffer Overflow (CWE-122) in their CVE record, tied for 20th among the 196 weaknesses named in the catalog.
  • CISA added 3 CWE-122 entries to the KEV catalog in 2024, 4 in 2025, and 5 so far in 2026.
  • Microsoft has the most CWE-122 entries in the CISA KEV catalog (11), followed by Adobe (3) and Fortinet (2).
  • For CWE-122 entries added to the CISA KEV catalog since 2023, the median time from CVE publication to KEV listing is 0 days (listed on the publication date), compared with 15 days for all entries added in that period.
  • CISA marks 17% of CWE-122 KEV entries (4 of 24) as known to be used in ransomware campaigns, compared with 20% of all KEV entries.
  • CISA's SSVC enrichment rates 25% of CWE-122 KEV entries with SSVC data (6 of 24) as automatable, compared with 41% across the catalog.

Related Attack Patterns

1 CAPEC patterns
CAPEC-92Forced Integer OverflowDetailed · Severity High · Likelihood High

CWE-122 Vulnerabilities

33 CVEs
CVECVSS
CVE-2026-94127KEV
BIG-IP APM OAuth vulnerability
9.3
CVE-2025-25249KEV
Fortinet Multiple Products Heap-based Buffer Overflow Vulnerability
7.4
CVE-2026-85880KEV
Windows Advanced Local Procedure Call (ALPC) Elevation of Privilege Vulnerability
7.8
CVE-2026-53362KEV
ipv6: account for fraggap on the paged allocation path
7.8
CVE-2009-3459KEV
Adobe Acrobat and Reader Heap-Based Buffer Overflow Vulnerability
8.8
CVE-2025-24985KEV
Windows Fast FAT File System Driver Remote Code Execution Vulnerability
7.8
CVE-2025-24993KEV
Windows NTFS Remote Code Execution Vulnerability
7.8
CVE-2025-21418KEV
Windows Ancillary Function Driver for WinSock Elevation of Privilege Vulnerability
7.8
CVE-2025-21333KEV
Windows Hyper-V NT Kernel Integration VSP Elevation of Privilege Vulnerability
7.8
CVE-2024-49138KEV
Windows Common Log File System Driver Elevation of Privilege Vulnerability
7.8
CVE-2024-38812KEV
Heap-overflow vulnerability
9.8
CVE-2024-30051KEV
Windows DWM Core Library Elevation of Privilege Vulnerability
7.8
CVE-2023-4911KEV
Glibc: buffer overflow in ld.so leading to privilege escalation
7.8
CVE-2023-36036KEV
Windows Cloud Files Mini Filter Driver Elevation of Privilege Vulnerability
7.8
CVE-2023-27997KEV
Fortinet FortiOS and FortiProxy SSL-VPN Heap-Based Buffer Overflow Vulnerability
9.2
CVE-2023-28252KEV
Windows Common Log File System Driver Elevation of Privilege Vulnerability
7.8
CVE-2023-23376KEV
Windows Common Log File System Driver Elevation of Privilege Vulnerability
7.8
CVE-2019-3568KEV
WhatsApp VOIP Stack Buffer Overflow Vulnerability
9.8
CVE-2015-3113KEV
Adobe Flash Player Heap-Based Buffer Overflow Vulnerability
7.8
CVE-2022-26318KEV
WatchGuard Firebox and XTM Appliances Arbitrary Code Execution
9.8
CVE-2021-35395KEV
Realtek AP-Router SDK Buffer Overflow Vulnerability
9.8
CVE-2021-21017KEV
Acrobat Reader DC Heap-based Buffer Overflow Vulnerability Could Lead To Arbitrary Code Execution
8.8
CVE-2021-1647KEV
Microsoft Defender Remote Code Execution Vulnerability
7.8
CVE-2020-16010KEV
Google Chrome for Android UI Heap Buffer Overflow Vulnerability
9.6
CVE-2026-42945
NGINX ngx_http_rewrite_module vulnerability
9.2
CVE-2026-1149388.1
CVE-2026-27654
NGINX ngx_http_dav_module vulnerability
8.8
CVE-2026-47291
HTTP.sys Remote Code Execution Vulnerability
9.8
CVE-2026-45657
Windows Kernel Remote Code Execution Vulnerability
9.8
CVE-2026-8711
NGINX JavaScript vulnerability
9.2
CVE-2026-9256
NGINX ngx_http_rewrite_module vulnerability
9.2
CVE-2026-42533
NGINX Map directive and Regex matching vulnerability
9.2
CVE-2026-42055
NGINX ngx_http_proxy_v2_module and ngx_http_grpc_module vulnerability
9.2

Frequently Asked Questions

What is CWE-122?→

CWE-122 is a heap-based buffer overflow, where a write past the end of a buffer allocated on the heap corrupts nearby memory.

Do ASLR and compiler protections eliminate heap overflows?→

No. MITRE rates them as defense in depth. They make exploitation harder but do not remove the underlying bounds error.

How many exploited vulnerabilities are classified as CWE-122?→

This database lists 33 CVE records mapped to CWE-122 by their CVE Numbering Authority. 24 of them are in the CISA Known Exploited Vulnerabilities catalog, and CISA links 4 to known ransomware campaigns. Examples include CVE-2026-94127, CVE-2025-25249, CVE-2026-85880.

How quickly are CWE-122 vulnerabilities added to the KEV catalog?→

For CWE-122 entries added to the CISA KEV catalog since 2023, the median time from CVE publication to KEV listing is 0 days (listed on the publication date), compared with 15 days for all entries added in that period. These figures are as of November 23, 2026.

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. Attack patterns from CAPEC 3.9, © The MITRE Corporation, used under the CAPEC Terms of Use.