Common Weakness Enumeration

    CWE Definition / CWE-843

    CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')

    The product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type.

    Published:15 May 2011
    Organization:MITRE
    Modified:11 Dec 2025

    Related Weakness

    CWE-704: Incorrect Type Conversion or Cast

    CWE-704: Incorrect Type Conversion or Cast

    CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer