Skip to content
OpenAdvisories

Weakness (CWE)

CWE-681: Incorrect Conversion between Numeric Types

Base Draft

When converting from one data type to another, such as long to integer, data can be omitted or translated in a way that produces unexpected values. If the resulting values are used in a sensitive context, then dangerous behaviors may occur.

How to prevent it (1 mitigation)
  1. Implementation

    Avoid making conversion between numeric types. Always check for the allowed ranges.

Source: MITRE CWE-681

50 results · Clear filters · Feed

  • High 8.2

    EIPStackGroup OpENer Ethernet/IP Incorrect Conversion between Numeric Types

    A specifically crafted packet sent by an attacker to EIPStackGroup OpENer EtherNet/IP commits and versions prior to Feb 10, 2021 may cause a denial-of-service condition.

  • High 7.5

    On F5 BIG-IP 16.1.x versions prior to 16.1.2.2, 15.1.x versions prior to 15.1.5.1, 14.1.x versions prior to 14.1.4.6, 1…

  • High 7.5

    The FANUC R-30iA and R-30iB series controllers are vulnerable to integer coercion errors, which cause the device to cra…

  • High 7.5

    SHL, SHR, and SAR operations trigger native exception at key values in besu

    Besu is an Ethereum client written in Java. Starting in version 21.10.0, changes in the implementation of the SHL, SHR, and SAR operations resulted in the introduction of a signed type coercion error in values that represent negative values for 32 bit signed …

  • High 7.1

    Heap OOB in nested `tf.map_fn` with `RaggedTensor`s in TensorFlow

    TensorFlow is an end-to-end open source platform for machine learning. In affected versions it is possible to nest a `tf.map_fn` within another `tf.map_fn` call. However, if the input tensor is a `RaggedTensor` and there is no function signature provided, cod…

  • High 7.5

    Denial of Service vulnerability in django-filter

    django-filter is a generic system for filtering Django QuerySets based on user selections. In django-filter before version 2.4.0, automatically generated `NumberFilter` instances, whose value was later converted to an integer, were subject to potential DoS fr…

  • High 7.8

    Linux kernel bpf verifier incorrect mod32 truncation

    The bpf verifier in the Linux kernel did not properly handle mod32 destination register truncation when the source register was known to be 0. A local attacker with the ability to load bpf programs could use this gain out-of-bounds reads in kernel memory lead…

  • High 8.1

    Signed to Unsigned Conversion Error in Facebook Hermes

    An Integer signedness error in the JavaScript Interpreter in Facebook Hermes prior to commit 2c7af7ec481ceffd0d14ce2d7c045e475fd71dc6 allows attackers to cause a denial of service attack or a potential RCE via crafted JavaScript. Note that this is only exploi…

  • High 7.3

    Structured reply is a feature of the newstyle NBD protocol allowing the server to send a reply in chunks. A bounds chec…

  • High 7.8
    CVE-2008-3282 EPSS 11%

    Integer overflow in the rtl_allocateMemory function in sal/rtl/source/alloc_global.c in the memory allocator in OpenOff…