CVE-2020-15266
JSON

3.7low

Undefined behavior in Tensorflow

Severity
3.7low CVSS:3.1 by GitHub_M
Exploit likelihood
0.94% (higher than 61% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-xwhf-g6j5-j5gcBIT-TENSORFLOW-2020-15266PYSEC-2020-139PYSEC-2020-296PYSEC-2020-331

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

Product or packageVersionsReported by
tensorflow tensorflow< 2.4.0CVE List
tensorflow (PyPI)before 2.4.0GitHub Advisory Database, PyPA Advisory Database
tensorflow-cpu (PyPI)before 2.4.0GitHub Advisory Database, PyPA Advisory Database
tensorflow-gpu (PyPI)before 2.4.0GitHub Advisory Database, PyPA Advisory Database
google tensorflowbefore 2.4.0NVD
tensorflow (Bitnami)before 2.4.0Bitnami Vulnerability Database

All scores

GitHub_M3.7low CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
GitHub3.7medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:N/A:P
Bitnami Vulnerability Databasehigh rating

Classification

What each source says

CVE List

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.

GitHub Advisory Database
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 for more information regarding the security model and how to contact us with issues and questions.

Attribution

This vulnerability has been reported in #42129

NVD (es)

En Tensorflow versiones anteriores a 2.4.0, cuando el argumento "boxes" de la función "tf.image.crop_and_resize" presenta un valor muy grande, la implementación del kernel de la CPU lo recibe como un valor de punto flotante "nan" de C++.&#xa0;Intentar operar sobre esto es un comportamiento indefinido que luego produce un fallo de segmentación.&#xa0;El problema está parcheado en eccb7ec454e6617738554a255d77f08e60ee0808 y TensorFlow 2.4.0 se publicará con el parche.&#xa0;Los paquetes nocturnos de TensorFlow después de esta confirmación también resolverán el problema

References

Sources

SourceRecordLicence
CVE ListCVE-2020-15266 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-xwhf-g6j5-j5gc changed 2026-07-08CC-BY-4.0
NVDCVE-2020-15266 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2020-139 changed 2023-12-06CC-BY-4.0
PyPA Advisory DatabasePYSEC-2020-296 changed 2023-12-06CC-BY-4.0
PyPA Advisory DatabasePYSEC-2020-331 changed 2023-12-06CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-TENSORFLOW-2020-15266 changed 2026-09-08Apache-2.0