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 package | Versions | Reported by |
|---|---|---|
| tensorflow tensorflow | < 2.4.0 | CVE List |
| tensorflow (PyPI) | before 2.4.0 | GitHub Advisory Database, PyPA Advisory Database |
| tensorflow-cpu (PyPI) | before 2.4.0 | GitHub Advisory Database, PyPA Advisory Database |
| tensorflow-gpu (PyPI) | before 2.4.0 | GitHub Advisory Database, PyPA Advisory Database |
| google tensorflow | before 2.4.0 | NVD |
| tensorflow (Bitnami) | before 2.4.0 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 3.7low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 3.7medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| Bitnami Vulnerability Database | high 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++. Intentar operar sobre esto es un comportamiento indefinido que luego produce un fallo de segmentación. El problema está parcheado en eccb7ec454e6617738554a255d77f08e60ee0808 y TensorFlow 2.4.0 se publicará con el parche. Los paquetes nocturnos de TensorFlow después de esta confirmación también resolverán el problema
References
| https://github.com/tensorflow/tensorflow/security/advisories/GHSA-xwhf-g6j5-j5gc | advisory, patch, third-party-advisory, web | |
| https://github.com/tensorflow/tensorflow/issues/42129 | advisory, exploit, patch, report, third-party-advisory, web | |
| https://github.com/tensorflow/tensorflow/pull/42143/commits/3ade2efec2e90c6237de32a19680caaa3ebc2845 | advisory, patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-15266 | advisory, web | |
| https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-296.yaml | web | |
| https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-331.yaml | web | |
| https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-139.yaml | web | |
| https://github.com/tensorflow/tensorflow | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-15266 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-xwhf-g6j5-j5gc changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2020-15266 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2020-139 changed 2023-12-06 | CC-BY-4.0 |
| PyPA Advisory Database | PYSEC-2020-296 changed 2023-12-06 | CC-BY-4.0 |
| PyPA Advisory Database | PYSEC-2020-331 changed 2023-12-06 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-TENSORFLOW-2020-15266 changed 2026-09-08 | Apache-2.0 |