Common Weakness Enumeration

    CWE Definition / CWE-121

    CWE-121: Stack-based Buffer Overflow

    A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).

    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