Undefined behavior in Tensorflow
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-119 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| tensorflow | before 2.4.0 | 2.4.0 | Patch available | CNA | |
| — | tensorflow (PyPI) | before 2.4.0 | 2.4.0 | Patch available | GHSA-xwhf-g6j5-j5gc |
| — | tensorflow-cpu (PyPI) | before 2.4.0 | 2.4.0 | Patch available | GHSA-xwhf-g6j5-j5gc |
| — | tensorflow-gpu (PyPI) | before 2.4.0 | 2.4.0 | Patch available | GHSA-xwhf-g6j5-j5gc |
- tensorflow VendorGoogle Affected before 2.4.0 Fixed in 2.4.0 Patch available CNA
- tensorflow (PyPI) Vendor— Affected before 2.4.0 Fixed in 2.4.0 Patch available GHSA-xwhf-g6j5-j5gc
- tensorflow-cpu (PyPI) Vendor— Affected before 2.4.0 Fixed in 2.4.0 Patch available GHSA-xwhf-g6j5-j5gc
- tensorflow-gpu (PyPI) Vendor— Affected before 2.4.0 Fixed in 2.4.0 Patch available GHSA-xwhf-g6j5-j5gc
Remediation
- Fix · CNA tensorflow (tensorflow) Fixed in 2.4.0
- Fix · GHSA-xwhf-g6j5-j5gc tensorflow (PyPI) Fixed in 2.4.0 Advisory →
- Fix · GHSA-xwhf-g6j5-j5gc tensorflow-cpu (PyPI) Fixed in 2.4.0 Advisory →
- Fix · GHSA-xwhf-g6j5-j5gc tensorflow-gpu (PyPI) Fixed in 2.4.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2020-15266
- 2026-10-03 Alias added: GHSA-xwhf-g6j5-j5gc
References
Patch 2
Other 4
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-296.yaml
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-331.yaml
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-139.yaml
- https://github.com/tensorflow/tensorflow
More Google Tensorflow vulnerabilities
- TI-2022-20241 FractionalMaxPool and FractionalAVGPool heap out-of-bounds acess in Tensorflow CVSS 3.1CRITICAL 9.8
- TI-2022-07640 Integer overflow in Tensorflow CVSS 3.1CRITICAL 9.8
- TI-2022-07627 Out of bounds read and write in Tensorflow CVSS 3.1HIGH 8.8
- TI-2022-07619 Out of bounds write in Tensorflow CVSS 3.1HIGH 8.8
- TI-2022-07613 Read and Write outside of bounds in TFLite CVSS 3.1HIGH 8.8
- TI-2022-07612 Integer overflow in TFLite CVSS 3.1HIGH 8.8
Sources
- CVE-2020-15266 · CVE Program
- CVE-2020-15266 · NVD
- FIRST EPSS
- GHSA-xwhf-g6j5-j5gc · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences