PyPI: tensorflow-rocm-enhanced

CVE-2021-37653

Safety vulnerability ID: SFTY-20210812-46853

Safety legacy ID: pyup.io-58052

Tensorflow-rocm-enhanced 2.3.4 and 2.4.3 include a fix for CVE-2021-37653: In affected versions an attacker can trigger a crash via a floating point exception in 'tf.raw_ops.ResourceGather'. The implementation (https://github.com/tensorflow/tensorflow/blob/f24faa153ad31a4b51578f8181d3aaab77a1ddeb/tensorflow/core/kernels/resource_variable_ops.cc#L725-L731) computes the value of a value, 'batch_size', and then divides by it without checking that this value is not 0. The Tensorflow team has patched the issue in GitHub commit ac117ee8a8ea57b73d34665cdf00ef3303bc0b11.

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

Overview

Division by 0 in `ResourceGather`

Advisory

Tensorflow-rocm-enhanced 2.3.4 and 2.4.3 include a fix for CVE-2021-37653: In affected versions an attacker can trigger a crash via a floating point exception in 'tf.raw_ops.ResourceGather'. The implementation (https://github.com/tensorflow/tensorflow/blob/f24faa153ad31a4b51578f8181d3aaab77a1ddeb/tensorflow/core/kernels/resource_variable_ops.cc#L725-L731) computes the value of a value, 'batch_size', and then divides by it without checking that this value is not 0. The Tensorflow team has patched the issue in GitHub commit ac117ee8a8ea57b73d34665cdf00ef3303bc0b11.

Affected Package

Affecting tensorflow-rocm-enhanced package, versions<2.3.4>=2.4.0rc0,<2.4.3

Also affects

---

How to Fix

Upgradetensorflow-rocm-enhancedto2.3.42.4.3or 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