# CVE-2020-15266: Undefined behavior in Tensorflow

- Severity: Low 3.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.94%, higher than 61% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-10-21T20:30:16.000Z
- Modified: 2026-09-08T08:48:19.888Z
- Also known as: GHSA-xwhf-g6j5-j5gc, BIT-TENSORFLOW-2020-15266, PYSEC-2020-139, PYSEC-2020-296, PYSEC-2020-331
- Weaknesses: CWE-119
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- tensorflow tensorflow: < 2.4.0
- tensorflow (PyPI): before 2.4.0
- tensorflow-cpu (PyPI): before 2.4.0
- tensorflow-gpu (PyPI): before 2.4.0
- google tensorflow: before 2.4.0
- tensorflow (Bitnami): before 2.4.0

## Every score

- GitHub_M: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 3.7 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/tensorflow/tensorflow/issues/42129> (exploit, advisory, patch, report, third-party-advisory, web)
- <https://github.com/tensorflow/tensorflow/security/advisories/GHSA-xwhf-g6j5-j5gc> (advisory, patch, 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

- CVE List: [CVE-2020-15266](https://www.cve.org/CVERecord?id=CVE-2020-15266), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-xwhf-g6j5-j5gc](https://github.com/advisories/GHSA-xwhf-g6j5-j5gc), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-15266](https://nvd.nist.gov/vuln/detail/CVE-2020-15266), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-139](https://osv.dev/vulnerability/PYSEC-2020-139), CC-BY-4.0, modified 2023-12-06
- PyPA Advisory Database: [PYSEC-2020-296](https://osv.dev/vulnerability/PYSEC-2020-296), CC-BY-4.0, modified 2023-12-06
- PyPA Advisory Database: [PYSEC-2020-331](https://osv.dev/vulnerability/PYSEC-2020-331), CC-BY-4.0, modified 2023-12-06
- Bitnami Vulnerability Database: [BIT-TENSORFLOW-2020-15266](https://osv.dev/vulnerability/BIT-TENSORFLOW-2020-15266), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2020-15266 · Whole record: https://cve.day/CVE-2020-15266.json · Rebuilt by cve.day 2026-11-25T22:57:55.414Z
