CWE-122: Heap-based Buffer Overflow
Also known as: Heap Overflow, Heap Buffer Overflow
The product writes past the end of a buffer that was allocated on the heap.
Last updated
Overview
CWE-122 (Heap-based Buffer Overflow) is a variant-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
Real-world CVEs
3,937 recorded CVEs are caused by CWE-122 (Heap-based Buffer Overflow), including 20 in CISA's KEV (Known Exploited Vulnerabilities) catalog. KEVs are shown first. 2,155 new CWE-122 CVEs have been recorded so far in 2026 (519 in 2025).