Common Weakness Enumeration

    CWE Definition / CWE-588

    CWE-588: Attempt to Access Child of a Non-structure Pointer

    Casting a non-structure type to a structure type and accessing a field can lead to memory access errors or data corruption.

    Published:15 Dec 2006
    Organization:MITRE
    Modified:11 Dec 2025

    Related Weakness

    CWE-704: Incorrect Type Conversion or Cast

    CWE-758: Reliance on Undefined, Unspecified, or Implementation-Defined Behavior

    CWE-588: Attempt to Access Child of a Non-structure Pointer | CVE-DB