Common Weakness Enumeration

    CWE Definition / CWE-122

    CWE-122: Heap-based Buffer Overflow

    A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().

    Published:19 Jul 2006
    Organization:MITRE
    Modified:21 Jan 2026

    Related Weakness

    CWE-788: Access of Memory Location After End of Buffer

    CWE-787: Out-of-bounds Write