cve.bz

CWE-704: Incorrect Type Conversion or Cast, published in 2022

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 promptExplain 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

  1. 7.5CVE-2022-41911google tensorflowEPSS 0.6%

    TensorFlow is an open source platform for machine learning. When printing a tensor, we get it's data as a `const char*` array (since that's the underlying storage) and then we typecast it to the element type. However, conversions from `cha…

  2. 7.5CVE-2022-41890google tensorflowEPSS 0.6%

    TensorFlow is an open source platform for machine learning. If `BCast::ToShape` is given input larger than an `int32`, it will crash, despite being supposed to handle up to an `int64`. An example can be seen in `tf.experimental.numpy.outer…

  3. 8.1CVE-2022-3979nagvisEPSS 1.3%

    A vulnerability was found in NagVis up to 1.9.33 and classified as problematic. This issue affects the function checkAuthCookie of the file share/server/core/classes/CoreLogonMultisite.php. The manipulation of the argument hash leads to in…

  4. 7.8CVE-2022-41668schneider-electricEPSS 0.2%

    A CWE-704: Incorrect Project Conversion vulnerability exists that allows adversaries with local user privileges to load a project file from an adversary-controlled network share which could result in execution of malicious code. Affected P…

  5. 8.1CVE-2022-41828amazon web services redshift java database connectivity driverEPSS 2.0%

    In Amazon AWS Redshift JDBC Driver (aka amazon-redshift-jdbc-driver or redshift-jdbc42) before 2.1.0.8, the Object Factory does not check the class type when instantiating an object from a class name.

  6. 7.5CVE-2020-10735EPSS 4.5%

    A flaw was found in python. In algorithms with quadratic time complexity using non-binary bases, when using int("text"), a system could take 50ms to parse an int string with 100,000 digits and 5s for 1,000,000 digits (float, decimal, int.f…

  7. 7.8CVE-2022-22102qualcommEPSS 0.1%

    Memory corruption in multimedia due to incorrect type conversion while adding data in Snapdragon Auto

  8. 6.7CVE-2022-21786google androidEPSS 0.1%

    In audio DSP, there is a possible memory corruption due to improper casting. This could lead to local escalation of privilege with System execution privileges needed. User interaction is not needed for exploitation. Patch ID: ALPS06558822;…

  9. 7.5CVE-2022-25852EPSS 1.4%

    All versions of package pg-native; all versions of package libpq are vulnerable to Denial of Service (DoS) when the addons attempt to cast the second argument to an array and fail. This happens for every non-array argument passed. **Note:*…

  10. 7.8CVE-2022-32547EPSS 1.4%

    In ImageMagick, there is load of misaligned address for type 'double', which requires 8 byte alignment and for type 'float', which requires 4 byte alignment at MagickCore/property.c. Whenever crafted or untrusted input is processed by Imag…

  11. 7.5CVE-2022-1642apple swiftEPSS 0.7%

    A program using swift-corelibs-foundation is vulnerable to a denial of service attack caused by a potentially malicious source producing a JSON document containing a type mismatch. This vulnerability is caused by the interaction between a …

  12. 7.8CVE-2021-35091qualcommEPSS 0.2%

    Possible out of bounds read due to improper typecasting while handling page fault for global memory in Snapdragon Connectivity, Snapdragon Mobile

  13. 9.8CVE-2021-33318EPSS 2.1%

    An Input Validation Vulnerability exists in Joel Christner .NET C# packages WatsonWebserver, IpMatcher 1.0.4.1 and below (IpMatcher) and 4.1.3 and below (WatsonWebserver) due to insufficient validation of input IP addresses and netmasks ag…

  14. 8.8CVE-2021-35110qualcommEPSS 0.2%

    Possible buffer overflow to improper validation of hash segment of file while allocating memory in Snapdragon Connectivity, Snapdragon Mobile

  15. 7.8CVE-2021-35105qualcommEPSS 0.2%

    Possible out of bounds access due to improper input validation during graphics profiling in Snapdragon Auto, Snapdragon Compute, Snapdragon Connectivity, Snapdragon Consumer IOT, Snapdragon Industrial IOT, Snapdragon Mobile, Snapdragon Voi…

  16. 5.5CVE-2022-0322EPSS 0.3%

    A flaw was found in the sctp_make_strreset_req function in net/sctp/sm_make_chunk.c in the SCTP network protocol in the Linux kernel with a local user privilege access. In this flaw, an attempt to use more buffer than is allocated triggers…

  17. 5.5CVE-2021-28275jhead project jheadEPSS 0.7%

    A Denial of Service vulnerability exists in jhead 3.04 and 3.05 due to a wild address read in the Get16u function in exif.c in will cause segmentation fault via a crafted_file.

  18. 7.8CVE-2021-3578EPSS 1.0%

    A flaw was found in mbsync before v1.3.6 and v1.4.2, where an unchecked pointer cast allows a malicious or compromised server to write an arbitrary integer value past the end of a heap-allocated structure by issuing an unexpected APPENDUID…

  19. 5.5CVE-2021-23566nanoid project nanoidEPSS 0.5%

    The package nanoid from 3.0.0 and before 3.1.31 are vulnerable to Information Exposure via the valueOf() function which allows to reproduce the last id generated.

  20. 7.5CVE-2021-30300qualcommEPSS 0.6%

    Possible denial of service due to incorrectly decoding hex data for the SIB2 OTA message and assigning a garbage value to choice when processing the SRS configuration in Snapdragon Auto, Snapdragon Compute, Snapdragon Connectivity, Snapdra…

  21. 7.5CVE-2021-39989huawei harmonyosEPSS 0.7%

    The HwNearbyMain module has a Exposure of Sensitive Information to an Unauthorized Actor vulnerability.Successful exploitation of this vulnerability may cause a process to restart.