CWE-704: Incorrect Type Conversion or Cast
The product does not correctly convert an object, resource, or structure from one type to a different type.
Last updated
Overview
CWE-704 (Incorrect Type Conversion or Cast) is a class-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
Real-world CVEs
218 recorded CVEs are caused by CWE-704 (Incorrect Type Conversion or Cast). The highest-severity and most recent are shown first. 39 new CWE-704 CVEs have been recorded so far in 2026 (16 in 2025).
- CVE-2015-3120
flash-plugin: multiple code execution issues fixed in APSB15-16
Critical · CVSS 10.0 · EPSS 95th2015-07-09 - CVE-2026-58822
Remote code execution in System
Critical · CVSS 9.8 · EPSS 24th2026-09-08 - CVE-2026-15826
User Profile Builder <= 3.16.4 - Unauthenticated Authentication Bypass via Type Confusion to Administrator Account Takeover via 'username' Parameter