Skip to content
TensorFlowGHSA-xwhf-g6j5-j5gc

Float cast overflow undefined behavior

Medium3.7CVE-2020-15266 · Published Nov 13, 2020 · updated Jul 8, 2026

### Impact When the `boxes` argument of `tf.image.crop_and_resize` has a very large value, the CPU kernel implementation receives it as a C++ `nan` floating point value. Attempting to operate on this is undefined behavior which later produces a segmentation fault. ### Patches We have patched the issue in c0319231333f0f16e1cc75ec83660b01fedd4182 and will release TensorFlow 2.4.0 containing the patch. TensorFlow nightly packages after this commit will also have the issue resolved. ### For more information Please consult [our security guide](https://github.com/tensorflow/tensorflow/blob/master/SECURITY.md) for more information regarding the security model and how to contact us with issues and questions. ### Attribution This vulnerability has been reported in #42129

GitHub advisory

Affected versions

PackageAffectedFixed in
tensorflow
PyPI
< 2.4.02.4.0
Details and references

More TensorFlow advisories

All TensorFlow
Advisory
Heap out of bounds access in MakeEdge in TensorFlow
Medium4.4Dec 10, 2020
CHECK-fail in LSTM with zero-length input in TensorFlow
Medium4.4Dec 10, 2020
Write to immutable memory region in TensorFlow
Medium4.4Dec 10, 2020
Lack of validation in data format attributes in TensorFlow
Low4.4Dec 10, 2020
Uninitialized memory access in TensorFlow
Medium4.4Dec 10, 2020
Segfault in `tf.quantization.quantize_and_dequantize`
High5.9Nov 13, 2020

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.