Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CWE-843 (使用不兼容类型访问资源(类型混淆)) — Vulnerability Class 538

538 vulnerabilities classified as CWE-843 (使用不兼容类型访问资源(类型混淆)). AI Chinese analysis included.

CWE-843, Type Confusion, is a critical memory safety weakness where a resource is initialized with one data type but subsequently accessed using an incompatible type. This discrepancy often triggers logical errors or undefined behavior, particularly in memory-unsafe languages like C and C++, where the program misinterprets the underlying bit patterns. Attackers typically exploit this vulnerability by crafting malicious inputs that force the application to treat a pointer or object as a different type, potentially leading to arbitrary code execution, data corruption, or denial of service. To mitigate this risk, developers must enforce strict type checking and validation at runtime. Utilizing memory-safe programming languages, implementing comprehensive unit tests for type assertions, and employing static analysis tools can effectively detect these mismatches before deployment, ensuring that resources are always accessed according to their intended definitions.

MITRE CWE Description
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. When the product accesses the resource using an incompatible type, this could trigger logical errors because the resource does not have expected properties. In languages without memory safety, such as C and C++, type confusion can lead to out-of-bounds memory access. While this weakness is frequently associated with unions when parsing data with many different embedded object types in C, it can be present in any application that can interpret the same variable or memory location in multiple ways. This weakness is not unique to C and C++. For example, errors in PHP applications can be triggered by providing array parameters when scalars are expected, or vice versa. Languages such as Perl, which perform automatic conversion of a variable of one type when it is accessed as if it were another type, can also contain these issues.
Common Consequences (1)
Availability, Integrity, Confidentiality Read Memory, Modify Memory, Execute Unauthorized Code or Commands, DoS: Crash, Exit, or Restart
When a memory buffer is accessed using the wrong type, it could read or write memory out of the bounds of the buffer, if the allocated buffer is smaller than the type that the code is attempting to access, leading to a crash and possibly code execution.
Examples (2)
The following code uses a union to support the representation of different types of messages. It formats messages differently, depending on their type.
#define NAME_TYPE 1 #define ID_TYPE 2 struct MessageBuffer { int msgType; union { char *name; int nameID; }; }; int main (int argc, char **argv) { struct MessageBuffer buf; char *defaultMessage = "Hello World"; buf.msgType = NAME_TYPE; buf.name = defaultMessage; printf("Pointer of buf.name is %p\n", buf.name); /* This particular value for nameID is used to make the code architecture-independent. If coming from untrusted input, it could be any value. */ buf.nameID = (int)(defaultMessage + 1); printf("Pointer of buf.name is now %p\n", buf.name); if (buf.msgType == NAME_TYPE) { printf("Message: %
Bad · C
The following PHP code accepts a value, adds 5, and prints the sum.
$value = $_GET['value']; $sum = $value + 5; echo "value parameter is '$value'<p>"; echo "SUM is $sum";
Bad · PHP
CVE ID Title CVSS Severity Published
CVE-2026-115892 Wasmtime: Panic lowering a host-created component model stream into a guest that expects a different payload type — wasmtime 5.7 Medium 2026-10-23
CVE-2026-114115 Vyper 0.3.8 through 0.5.0b1 Memory Misread via Ternary Nested Array Selection — vyper 3.7 Low 2026-10-21
CVE-2026-108518 DBI versions before 1.656 for Perl crash via type confusion in dbi_profile when a database handle is destroyed under a Profile Path with an {attr} element - - 2026-10-20
CVE-2026-113055 Chrome 156 之前 Android 全屏功能类型混淆漏洞 — Chrome - - 2026-10-20
CVE-2026-110674 Cpanel::JSON::XS versions from 4.33 before 4.80 for Perl miss duplicate non-ASCII bare keys, allowing type confusion under dupkeys_as_arrayref in decode_hv - - 2026-10-19
CVE-2026-0314 GlobalProtect App: Local Denial of Service (DoS) on Windows — GlobalProtect App 4.3 Medium 2026-10-14
CVE-2026-110140 Chrome <155.0.8059.79 V8类型混淆漏洞 — Chrome - - 2026-10-13
CVE-2026-102869 .NET and Visual Studio Elevation of Privilege Vulnerability — Microsoft .NET Framework 3.5 AND 4.6.2/4.7/4.7.1/4.7.2 8.8 High 2026-10-13
CVE-2026-102216 Windows StateRepository API Elevation of Privilege Vulnerability — Windows 10 Version 1607 7.8 High 2026-10-13
CVE-2026-102203 RPC Runtime Remote Code Execution Vulnerability — Windows 10 Version 1607 8.8 High 2026-10-13
CVE-2026-96854 Windows Device Association Service Information Disclosure Vulnerability — Windows 10 Version 1607 5.5 Medium 2026-10-13
CVE-2026-83763 Windows Input System Elevation of Privilege Vulnerability — Windows 10 Version 1809 7.8 High 2026-10-13
CVE-2026-83664 Windows Portable Device File System Driver Information Disclosure Vulnerability — Windows 10 Version 1607 5.5 Medium 2026-10-13
CVE-2026-70051 Windows SmartScreen Elevation of Privilege Vulnerability — Windows 10 Version 1809 7.8 High 2026-10-13
CVE-2026-69880 Desktop Window Manager Elevation of Privilege Vulnerability — Windows 10 Version 1809 7.8 High 2026-10-13
CVE-2026-96921 Windows Message Queuing Queue Manager Information Disclosure Vulnerability — Windows 10 Version 1607 5.5 Medium 2026-10-13
CVE-2026-70167 Windows Domain Name Service Remote Code Execution Vulnerability — Windows Server 2022 8.8 High 2026-10-13
CVE-2026-85377 Windows CD-ROM Driver Elevation of Privilege Vulnerability — Windows 10 Version 1607 7.8 High 2026-10-13
CVE-2026-83642 Windows Domain Name Service Remote Code Execution Vulnerability — Windows 10 Version 1607 8.8 High 2026-10-13
CVE-2026-70225 Windows Ancillary Function Driver for WinSock Elevation of Privilege Vulnerability — Windows 10 Version 1607 7.8 High 2026-10-13
CVE-2026-70205 Windows Ancillary Function Driver for WinSock Elevation of Privilege Vulnerability — Windows 10 Version 1607 7.0 High 2026-10-13
CVE-2026-70245 Windows Ancillary Function Driver for WinSock Elevation of Privilege Vulnerability — Windows 10 Version 1607 7.8 High 2026-10-13
CVE-2026-70017 Windows Secure Kernel Mode Information Disclosure Vulnerability — Windows 10 Version 1809 5.5 Medium 2026-10-13
CVE-2026-69926 Desktop Window Manager Elevation of Privilege Vulnerability — Windows 10 Version 1809 7.8 High 2026-10-13
CVE-2026-109282 ImageMagick before 6.9.13-57 and 7.x before 7.1.2-32 Undefined Behavior in INFO, JSON and YAML Encoders — ImageMagick 2.5 Low 2026-10-12
CVE-2026-108952 RT-Thread through 5.3.0 Memory Corruption via USB CDC VCOM Driver — rt-thread 4.6 Medium 2026-10-12
CVE-2026-19575 Type confusion in the device_deinit system call allows user-mode threads to execute arbitrary kernel code — zephyr 7.8 High 2026-10-09
CVE-2026-107911 Type confusion in FalkorDB GRAPH.QUERY via the --bolt argument — FalkorDB 7.5 High 2026-10-09
CVE-2026-106433 Heap corruption via duplicate masterKey fields in MongoDB libmongocrypt — libmongocrypt 8.8 High 2026-10-08
CVE-2026-16111 IBM DataPower Gateway Type Confusion — DataPower Gateway 10.6CD 7.5 High 2026-10-08

Vulnerabilities classified as CWE-843 (使用不兼容类型访问资源(类型混淆)) represent 538 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.