CWE-704: Incorrect Type Conversion or Cast, published in 2023
Filter
The product does not correctly convert an object, resource, or structure from one type to a different type.
What the weakness is: CWE-704 at MITRE. All weaknesses
Ask an AI about CWE-704
Show the prompt
Explain CWE-704: Incorrect Type Conversion or Cast and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/704.html and https://cve.bz/cve/cwe/704?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.
By year: all 2026 2025 2024 2023 2022 2021
- 7.8CVE-2023-45204siemens tecnomatixEPSS 0.2%
A vulnerability has been identified in Tecnomatix Plant Simulation V2201 (All versions < V2201.0009), Tecnomatix Plant Simulation V2302 (All versions < V2302.0003). The affected applications contain a type confusion vulnerability while par…
- 7.8CVE-2023-21651qualcommEPSS 0.1%
Memory Corruption in Core due to incorrect type conversion or cast in secure_io_read/write function in TEE.
- 7.8CVE-2023-21627qualcommEPSS 0.1%
Memory corruption in Trusted Execution Environment while calling service API with invalid address.
- 7.8CVE-2023-21638qualcommEPSS 0.1%
Memory corruption in Video while calling APIs with different instance ID than the one received in initialization.
- 7.8CVE-2022-33240qualcommEPSS 0.1%
Memory corruption in Audio due to incorrect type cast during audio use-cases.
- 8.8CVE-2023-28162mozillaEPSS 0.7%
While implementing AudioWorklets, some code may have casted one type to another, invalid, dynamic type. This could have led to a potentially exploitable crash. This vulnerability affects Firefox < 111, Firefox ESR < 102.9, and Thunderbird …
- 8.8CVE-2023-25737mozillaEPSS 0.7%
An invalid downcast from <code>nsTextNode</code> to <code>SVGElement</code> could have lead to undefined behavior. This vulnerability affects Firefox < 110, Thunderbird < 102.8, and Firefox ESR < 102.8.
- 7.8CVE-2023-21665qualcommEPSS 0.2%
Memory corruption in Graphics while importing a file.
- 7.8CVE-2022-33301qualcommEPSS 0.1%
Memory corruption due to incorrect type conversion or cast in audio while using audio playback/capture when crafted address is sent from AGM IPC to AGM.
- 7.8CVE-2022-40531qualcommEPSS 0.1%
Memory corruption in WLAN due to incorrect type cast while sending WMI_SCAN_SCH_PRIO_TBL_CMDID message.
- 7.8CVE-2022-25715qualcommEPSS 0.1%
Memory corruption in display driver due to incorrect type casting while accessing the fence structure fields