CWE-704: Incorrect Type Conversion or Cast, published in 2025
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
- 8.8CVE-2025-13720google chromeEPSS 0.3%
Bad cast in Loader in Google Chrome prior to 143.0.7499.41 allowed a remote attacker who had compromised the renderer process to potentially exploit heap corruption via a crafted HTML page. (Chromium security severity: Medium)
- 7.1CVE-2025-62494quickjs project quickjsEPSS 0.5%
A type confusion vulnerability exists in the handling of the string addition (+) operation within the QuickJS engine. * The code first checks if the left-hand operand is a string. * It then attempts to convert the right-hand opera…
- 7.8CVE-2025-39880EPSS 0.3%
In the Linux kernel, the following vulnerability has been resolved: libceph: fix invalid accesses to ceph_connection_v1_info There is a place where generic code in messenger.c is reading and another place where it is writing to con->v1 u…
- 9.3CVE-2010-20115arcane software vermillion ftp daemonExploitEPSS 8.8%
Arcane Software’s Vermillion FTP Daemon (vftpd) versions up to and including 1.31 contains a memory corruption vulnerability triggered by a malformed FTP PORT command. The flaw arises from an out-of-bounds array access during input parsing…
- 6.9CVE-2025-54429polkadot-evm frontierEPSS 0.5%
Polkadot Frontier is an Ethereum and EVM compatibility layer for Polkadot and Substrate. There are various account address types in Frontier, e.g. precompiled contracts, smart contracts, and externally owned accounts. Some EVM mechanisms s…
- 9.8CVE-2025-41648pilz industrialpi 4 with industrialpi webstatusEPSS 0.8%
An unauthenticated remote attacker can bypass the login to the web application of the affected devices making it possible to access and change all available settings of the IndustrialPI.
- 9.8CVE-2025-41646kunbus revpi statusEPSS 51%
An unauthorized remote attacker can bypass the authentication of the affected software package by misusing an incorrect type conversion. This leads to full compromise of the device
- 5.5CVE-2022-49873linux kernelEPSS 0.2%
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix wrong reg type conversion in release_reference() Some helper functions will allocate memory. To avoid memory leaks, the verifier requires the eBPF program to re…
- 5.5CVE-2025-37746linux kernelEPSS 0.2%
In the Linux kernel, the following vulnerability has been resolved: perf/dwc_pcie: fix duplicate pci_dev devices During platform_device_register, wrongly using struct device pci_dev as platform_data caused a kmemdup copy of pci_dev. Wors…
- 5.3CVE-2023-35816devexpressEPSS 0.6%
DevExpress before 23.1.3 allows arbitrary TypeConverter conversion.
- 5.5CVE-2025-22044linux kernelEPSS 0.2%
In the Linux kernel, the following vulnerability has been resolved: acpi: nfit: fix narrowing conversion in acpi_nfit_ctl Syzkaller has reported a warning in to_nfit_bus_uuid(): "only secondary bus families can be translated". This warni…
- 7.8CVE-2024-43058qualcommEPSS 0.1%
Memory corruption while processing IOCTL calls.
- 4.3CVE-2025-1057red hatEPSS 0.4%
A flaw was found in Keylime, a remote attestation solution, where strict type checking introduced in version 7.12.0 prevents the registrar from reading database entries created by previous versions, for example, 7.11.0. Specifically, older…
- 7.5CVE-2025-20072mattermost mobileEPSS 0.5%
Mattermost Mobile versions <= 2.22.0 fail to properly validate the style of proto supplied to an action's style in post.props.attachments, which allows an attacker to crash the mobile via crafted malicious input.
- 6.5CVE-2025-21088mattermost serverEPSS 0.6%
Mattermost versions 10.2.x <= 10.2.0, 9.11.x <= 9.11.5, 10.0.x <= 10.0.3, 10.1.x <= 10.1.3 fail to properly validate the style of proto supplied to an action's style in post.props.attachments, which allows an attacker to crash the frontend…
- 5.5CVE-2024-57839linux kernelEPSS 0.2%
In the Linux kernel, the following vulnerability has been resolved: Revert "readahead: properly shorten readahead when falling back to do_page_cache_ra()" This reverts commit 7c877586da3178974a8a94577b6045a48377ff25. Anders and Philippe…