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-106587 OpenSSH 10.6前sshd配置项解析漏洞 — OpenSSH 3.6 Low 2026-10-06
CVE-2026-106374 Chrome<155.0.8059.39 V8类型混淆远程代码执行 — Chrome - - 2026-10-06
CVE-2026-106341 Chrome 155.0.8059.39前V8类型混淆漏洞 — Chrome - - 2026-10-06
CVE-2026-106240 Chrome <155.0.8059.39 存在类型混淆导致远程代码执行 — Chrome - - 2026-10-06
CVE-2026-106293 Chrome <155.0.8059.39 类型混淆漏洞 — Chrome - - 2026-10-06
CVE-2026-106101 Quasar Framework: DOM Clobbering in Quasar openURL() SafariViewController Integration Causes Client-Side Denial of Service — quasar 3.1 Low 2026-10-06
CVE-2026-20587 mtee系统权限提升漏洞(类型混淆) — MediaTek chipset - - 2026-10-05
CVE-2026-103625 Chrome<154.0.8037.97 V8类型混淆致远程代码执行 — Chrome - - 2026-10-02
CVE-2026-104846 Seroval: `fromJSON()` Promise thenable assimilation invokes plugin-produced callables (bypass of CVE-2026-59940) — seroval 9.8 Critical 2026-10-02
CVE-2026-47583 NVIDIA Windows驱动内核类型混淆漏洞 — GeForce 7.8 High 2026-09-30
CVE-2026-47572 NVIDIA Linux驱动内核层类型混淆漏洞 — GeForce 7.8 High 2026-09-30
CVE-2026-47569 NVIDIA Linux驱动内核层类型混淆漏洞 — GeForce 7.8 High 2026-09-30
CVE-2026-47504 NVIDIA Linux驱动NGX更新器类型混淆漏洞 — GeForce 7.8 High 2026-09-30
CVE-2026-102321 Chrome V8 类型混淆远程代码执行漏洞 — Chrome - - 2026-09-29
CVE-2026-102326 Chrome 154 V8类型混淆远程代码执行 — Chrome - - 2026-09-29
CVE-2026-102328 Chrome V8类型混淆致沙箱内代码执行 — Chrome - - 2026-09-29
CVE-2026-102299 Chrome V8类型混淆漏洞致沙箱内代码执行 — Chrome - - 2026-09-29
CVE-2026-102323 Chrome V8类型混淆致沙箱内代码执行 — Chrome - - 2026-09-29
CVE-2026-95380 Chrome 154.0.8037.57 V8类型混淆漏洞 — Chrome - - 2026-09-29
CVE-2026-95306 Chrome V8 类型混淆致沙箱代码执行 — Chrome - - 2026-09-29
CVE-2026-95365 Chrome 154.0.8037.57前IndexedDB类型混淆 — Chrome - - 2026-09-29
CVE-2026-95286 Chrome 154.0.8037.57前类型混淆漏洞 — Chrome - - 2026-09-29
CVE-2026-102556 Libsoup: libsoup: heap buffer overflow from websocket pong signal type confusion — Red Hat Enterprise Linux 10 8.6 High 2026-09-29
CVE-2026-18417 Wild pointer dereference in Zephyr BSD sockets when a TCP listening socket reports an asynchronous error — zephyr 6.5 Medium 2026-09-28
CVE-2026-85644 XS::Parse::Infix versions from 0.40 through 0.49 for Perl treat a number as an array reference - - 2026-09-28
CVE-2026-88816 DBI versions before 1.654 for Perl incorrectly treat numeric values as strings in FetchHashKeyName - - 2026-09-28
CVE-2026-88815 DBI versions before 1.654 for Perl incorrectly treat numeric values as strings in sql_type_cast_svpv - - 2026-09-28
CVE-2026-97737 Wakapi<2.17.6用户缓存逻辑缺陷致账户接管 — Wakapi 7.4 High 2026-09-25
CVE-2026-96883 Type confusion in AWS pgcollection allows remote code execution — pgcollection 8.8 High 2026-09-24
CVE-2026-94083 Suricata 8.0.7之前DoH2类型混淆导致DoS — Suricata 9.4 Critical 2026-09-20

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