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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CWE-704 (不正确的类型转换) — Vulnerability Class 66

66 vulnerabilities classified as CWE-704 (不正确的类型转换). AI Chinese analysis included.

CWE-704 represents a critical software weakness where an application fails to properly convert or cast data between different types, leading to unpredictable behavior or security vulnerabilities. This flaw is typically exploited by attackers who manipulate input data to trigger unintended type conversions, potentially causing buffer overflows, logic errors, or privilege escalation. For instance, forcing a string to be interpreted as an integer might bypass validation checks or corrupt memory structures. To mitigate this risk, developers must implement rigorous input validation and explicitly define type boundaries during conversion processes. Utilizing strongly typed languages and avoiding implicit casts can significantly reduce exposure. Additionally, employing static analysis tools to detect unsafe type operations and conducting thorough code reviews ensures that all conversions are handled safely, preserving data integrity and preventing exploitation of these logical flaws.

MITRE CWE Description
The product does not correctly convert an object, resource, or structure from one type to a different type.
Common Consequences (1)
Other Other
Examples (2)
In this example, depending on the return value of accecssmainframe(), the variable amount can hold a negative value when it is returned. Because the function is declared to return an unsigned value, amount will be implicitly cast to an unsigned number.
unsigned int readdata () { int amount = 0; ... amount = accessmainframe(); ... return amount; }
Bad · C
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
CVE ID Title CVSS Severity Published
CVE-2026-20249 Cisco Secure Firewall Adaptive Security Appliance and Secure Firewall Threat Defense Software IKEv2 Certificate Authentication Denial of Service Vulnerability — Cisco Secure Firewall Adaptive Security Appliance (ASA) Software 8.6 High 2026-09-16
CVE-2026-86348 MS Calendar plugin: unrecovered handler panics from malformed post-action requests could crash the plugin process — Mattermost 4.3 Medium 2026-09-14
CVE-2026-87546 Google Chrome 处理逻辑错误漏洞 — Chrome - - 2026-09-09
CVE-2026-69585 Microsoft Windows Search Component Elevation of Privilege Vulnerability — Windows 10 Version 1607 7.8 High 2026-09-08
CVE-2026-10080 Boards plugin panics on WebSocket command with non-string field types — Mattermost 6.5 Medium 2026-08-17
CVE-2026-15826 User Profile Builder <= 3.16.4 - Unauthenticated Authentication Bypass via Type Confusion to Administrator Account Takeover via 'username' Parameter — User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor 9.8 Critical 2026-08-15
CVE-2026-53798 rsync < 3.5.0 Privilege Confusion via name-converter uid/gid mapping — rsync 5.3 Medium 2026-08-13
CVE-2026-73429 Russh: client wrong-length X25519 `clone_from_slice` panic (pre-auth DoS) — russh 5.3 Medium 2026-08-12
CVE-2026-50337 Windows Notification Elevation of Privilege Vulnerability — Windows 10 Version 1607 7.8 High 2026-07-14
CVE-2026-59871 node-tar: Process crash via PAX numeric path type confusion — node-tar 5.3 Medium 2026-07-08
CVE-2026-48140 Unchecked enum cast vulnerability in NI grpc-device in BeginSidebandStream — grpc-device 6.5 Medium 2026-06-19
CVE-2026-44324 free5GC: UDR nudr-dr DELETE amf-subscriptions panics on missing UE state via nil interface type assertion (single authenticated request) — free5gc 6.5 Medium 2026-05-27
CVE-2023-7345 Ledger Live hw-app-eth EIP-712 Message Parsing Integer Truncation — ledgerhq/hw-app-eth 6.5 Medium 2026-05-19
CVE-2026-42576 apko `DiscoverKeys` has a panic on non-rsa jwks key that causes crash during key discovery — apko 6.5 Medium 2026-05-09
CVE-2026-40613 Coturn: Misaligned Memory Access in coturn STUN Attribute Parser (Remote DoS on ARM64) — coturn 7.5 High 2026-04-21
CVE-2026-34379 OpenEXR has a misaligned write in LossyDctDecoder_execute leading to undefined behavior (DWA/DWAB decompression) — openexr 7.1 High 2026-04-06
CVE-2021-4456 Net::CIDR versions before 0.24 for Perl mishandle leading zeros in IP CIDR addresses, which may have unspecified impact — Net::CIDR 9.8 - 2026-02-27
CVE-2025-40541 SolarWinds Serv-U Insecure Direct Object Reference (IDOR) Remote Code Execution Vulnerability — Serv-U 9.1 Critical 2026-02-24
CVE-2025-40540 SolarWinds Serv-U Type Confusion Remote Code Execution Vulnerability — Serv-U 9.1 Critical 2026-02-24
CVE-2025-40539 SolarWinds Serv-U Type Confusion Remote Code Execution Vulnerability — Serv-U 9.1 Critical 2026-02-24
CVE-2026-25613 An unsafe cast in the MongoDB query planner can result in a segmentation fault. — MongoDB Server 6.5 Medium 2026-02-10
CVE-2026-25503 iccDEV Has Type Confusion in CIccTagEmbeddedHeightImage::Validate() — iccDEV 7.1 High 2026-02-03
CVE-2026-22041 loggingredactor converts non-string types to string types in logs — loggingredactor 9.1 - 2026-01-08
CVE-2025-13720 Google Chrome 安全漏洞 — Chrome 8.8AI High AI 2025-12-02
CVE-2025-62494 Type confusion in string addition in QuickJS — QuickJS 9.8AI Critical AI 2025-10-16
CVE-2025-54429 Polkadot Frontier's constructing smart contract can bypass precompile address bounding — frontier 7.5AI High AI 2025-07-28
CVE-2025-41648 Pilz: Authentication Bypass in IndustrialPI Webstatus — IndustrialPI 4 with IndustrialPI webstatus 9.8 Critical 2025-07-01
CVE-2025-41646 RevPi Webstatus application is vulnerable to an authentication bypass — Revolution Pi webstatus 9.8 Critical 2025-06-06
CVE-2024-43058 Incorrect Type Conversion or Cast in Multimedia Frameworks — Snapdragon 7.8 High 2025-04-07
CVE-2025-1057 Keylime: keylime registrar dos due to incompatible database entry handling 4.3 Medium 2025-03-15

Vulnerabilities classified as CWE-704 (不正确的类型转换) represent 66 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.