PyPI: tensorflow-gpu

CVE-2021-41214

Safety vulnerability ID: SFTY-20211105-21079

Safety legacy ID: pyup.io-56102

Tensorflow-gpu versions 2.4.4, 2.5.2 and 2.6.1 include a fix for CVE-2021-41214: In affected versions, the shape inference code for 'tf.ragged.cross' has an undefined behavior due to binding a reference to 'nullptr'. The fix is included in TensorFlow 2.7.0. https://github.com/tensorflow/tensorflow/security/advisories/GHSA-vwhq-49r4-gj9v https://github.com/tensorflow/tensorflow/commit/fa6b7782fbb14aa08d767bc799c531f5e1fb3bb8

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

Overview

Reference binding to `nullptr` in `tf.ragged.cross`

Advisory

Tensorflow-gpu versions 2.4.4, 2.5.2 and 2.6.1 include a fix for CVE-2021-41214: In affected versions, the shape inference code for 'tf.ragged.cross' has an undefined behavior due to binding a reference to 'nullptr'. The fix is included in TensorFlow 2.7.0. https://github.com/tensorflow/tensorflow/security/advisories/GHSA-vwhq-49r4-gj9v https://github.com/tensorflow/tensorflow/commit/fa6b7782fbb14aa08d767bc799c531f5e1fb3bb8

Affected Package

Affecting tensorflow-gpu package, versions<2.4.4>=2.5.0rc0,<2.5.2>=2.6.0rc0,<2.6.1

Also affects

---

How to Fix

Upgradetensorflow-gputo2.4.42.5.22.6.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