PyPI: tensorflow-rocm

CVE-2020-15207

Safety vulnerability ID: SFTY-20200925-51736

Safety legacy ID: pyup.io-57988

Tensorflow-rocm versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1 include a fix for CVE-2020-15207: In tensorflow-lite before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, to mimic Python's indexing with negative values, TFLite uses 'ResolveAxis' to convert negative values to positive indices. However, the only check that the converted index is now valid is only present in debug builds. If the 'DCHECK' does not trigger, then code execution moves ahead with a negative index. This, in turn, results in accessing data out of bounds which results in segfaults and/or data corruption. https://github.com/tensorflow/tensorflow/security/advisories/GHSA-q4qf-3fc6-8x34

Created at: Jul 5, 2026Updated at: Jul 5, 2026

Overview

Segfault and data corruption in tensorflow-lite

Advisory

Tensorflow-rocm versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1 include a fix for CVE-2020-15207: In tensorflow-lite before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, to mimic Python's indexing with negative values, TFLite uses 'ResolveAxis' to convert negative values to positive indices. However, the only check that the converted index is now valid is only present in debug builds. If the 'DCHECK' does not trigger, then code execution moves ahead with a negative index. This, in turn, results in accessing data out of bounds which results in segfaults and/or data corruption. https://github.com/tensorflow/tensorflow/security/advisories/GHSA-q4qf-3fc6-8x34

Affected Package

Affecting tensorflow-rocm package, versions<1.15.4>=2.0.0a0,<2.0.3>=2.1.0a0,<2.1.2>=2.2.0a0,<2.2.1>=2.3.0a0,<2.3.1

Also affects

---

How to Fix

Upgradetensorflow-rocmto1.15.42.1.22.1.22.3.12.3.1or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more