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

101 results · Feed

  • 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…

  • Unscored —

    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…

  • 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 …

  • Medium 5.5

    Overflow/crash in `tf.range`

    TensorFlow is an open source platform for machine learning. In affected versions while calculating the size of the output within the `tf.range` kernel, there is a conditional statement of type `int64 = condition ? int64 : double`. Due to C++ implicit conversi…

  • Medium 5.5

    Crash in NMS ops caused by integer conversion to unsigned in TensorFlow

    TensorFlow is an end-to-end open source platform for machine learning. In affected versions an attacker can cause denial of service in applications serving models using `tf.raw_ops.NonMaxSuppressionV5` by triggering a division by 0. The [implementation](https…

  • 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…

  • Medium 5.5

    Bad alloc in `StringNGrams` caused by integer conversion in TensorFlow

    TensorFlow is an end-to-end open source platform for machine learning. In affected versions the implementation of `tf.raw_ops.StringNGrams` is vulnerable to an integer overflow issue caused by converting a signed integer value to an unsigned one and then allo…

  • Medium 5.5

    Crash caused by integer conversion to unsigned in TensorFlow

    TensorFlow is an end-to-end open source platform for machine learning. In affected versions an attacker can cause a denial of service in `boosted_trees_create_quantile_stream_resource` by using negative arguments. The [implementation](https://github.com/tenso…

  • Medium 5.5

    Integer overflow due to conversion to unsigned in TensorFlow

    TensorFlow is an end-to-end open source platform for machine learning. In affected versions the implementation of `tf.raw_ops.QuantizeAndDequantizeV4Grad` is vulnerable to an integer overflow issue caused by converting a signed integer value to an unsigned on…

  • Critical 9.8

    Incorrect cast in anymap

    An issue was discovered in the anymap crate through 0.12.1 for Rust. It violates soundness via conversion of a *u8 to a *u64.

  • Low 2.5

    Segfault in tf.raw_ops.ImmutableConst

    TensorFlow is an end-to-end open source platform for machine learning. Calling `tf.raw_ops.ImmutableConst`(https://www.tensorflow.org/api_docs/python/tf/raw_ops/ImmutableConst) with a `dtype` of `tf.resource` or `tf.variant` results in a segfault in the imple…

  • Medium 4.0

    An information disclosure vulnerability exists in the /proc/pid/syscall functionality of Linux Kernel 5.1 Stable and 5.…

  • 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…

  • Low 3.1

    Integer casting vulnerability in `update_recv_secondary_order` in FreeRDP

    In FreeRDP before version 2.1.2, there is an integer casting vulnerability in update_recv_secondary_order. All clients with +glyph-cache /relax-order-checks are affected. This is fixed in version 2.1.2.

  • Low 2.6

    Heap buffer overflow in `UnsortedSegmentSum` in TensorFlow

    In TensorFlow before 1.15, a heap buffer overflow in UnsortedSegmentSum can be produced when the Index template argument is int32. In this case data_size and num_segments fields are truncated from int64 to int32 and can produce negative numbers, resulting in …

  • 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…

  • Medium 4.3

    PowerDNS Authoritative daemon , pdns versions 4.0.x before 4.0.9, 4.1.x before 4.1.11, exiting when encountering a seri…

  • 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…