What’s Vulnerable › Vulnerabilities
CVE-2020-15266: Undefined behavior in Tensorflow
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.9% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2020-10-21 · updated 2026-06-17
- Weakness: CWE-119
Description
In Tensorflow before version 2.4.0, 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. The issue is patched in eccb7ec454e6617738554a255d77f08e60ee0808 and TensorFlow 2.4.0 will be released containing the patch. TensorFlow nightly packages after this commit will also have the issue resolved.
Affected products
- tensorflow: before 2.4.0 — fixed in 2.4.0
How to fix
Upgrade to a fixed version: tensorflow 2.4.0. Check the vendor advisory for mitigations.
References
- https://github.com/tensorflow/tensorflow/issues/42129
- https://github.com/tensorflow/tensorflow/pull/42143/commits/3ade2efec2e90c6237de32a19680caaa3ebc2845
- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-xwhf-g6j5-j5gc
- https://github.com/tensorflow/tensorflow/issues/42129
- https://github.com/tensorflow/tensorflow/pull/42143/commits/3ade2efec2e90c6237de32a19680caaa3ebc2845
- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-xwhf-g6j5-j5gc
Get alerted when CVE-2020-15266 or the next vulnerability affects your stack