Live threats

All CVEs / Google

CVE-2021-29613Google Tensorflow

High 7.1

Priority
43
CVSS 3.1
7.1
EPSS
0.2%
probability of exploitation in 30 days · percentile 9
Auth required
Yes
Published
May 14, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-665, CWE-125
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

What happens

TensorFlow is an end-to-end open source platform for machine learning. Incomplete validation in `tf.raw_ops.CTCLoss` allows an attacker to trigger an OOB read from heap. The fix will be included in TensorFlow 2.5.0. We will also cherrypick these commits on TensorFlow 2.4.2, TensorFlow 2.3.3, TensorFlow 2.2.3 and TensorFlow 2.1.4, as these are also affected and still in supported range.

Original NVD text.

What to do

  1. Apply the vendor's security update for Tensorflow.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI tensorflow < 2.1.4 2.1.4 pip install "tensorflow>=2.1.4"
PyPI tensorflow ≥ 2.2.0 < 2.2.3 2.2.3 pip install "tensorflow>=2.2.3"
PyPI tensorflow ≥ 2.3.0 < 2.3.3 2.3.3 pip install "tensorflow>=2.3.3"
PyPI tensorflow ≥ 2.4.0 < 2.4.2 2.4.2 pip install "tensorflow>=2.4.2"
PyPI tensorflow < 2.1.4 2.1.4 pip install "tensorflow>=2.1.4"
PyPI tensorflow ≥ 2.2.0 < 2.2.3 2.2.3 pip install "tensorflow>=2.2.3"
PyPI tensorflow ≥ 2.3.0 < 2.3.3 2.3.3 pip install "tensorflow>=2.3.3"
PyPI tensorflow ≥ 2.4.0 < 2.4.2 2.4.2 pip install "tensorflow>=2.4.2"
PyPI tensorflow-cpu < 2.1.4 2.1.4 pip install "tensorflow-cpu>=2.1.4"
PyPI tensorflow-cpu ≥ 2.2.0 < 2.2.3 2.2.3 pip install "tensorflow-cpu>=2.2.3"
PyPI tensorflow-cpu ≥ 2.3.0 < 2.3.3 2.3.3 pip install "tensorflow-cpu>=2.3.3"
PyPI tensorflow-cpu ≥ 2.4.0 < 2.4.2 2.4.2 pip install "tensorflow-cpu>=2.4.2"
PyPI tensorflow-cpu < 2.1.4 2.1.4 pip install "tensorflow-cpu>=2.1.4"
PyPI tensorflow-cpu ≥ 2.2.0 < 2.2.3 2.2.3 pip install "tensorflow-cpu>=2.2.3"
PyPI tensorflow-cpu ≥ 2.3.0 < 2.3.3 2.3.3 pip install "tensorflow-cpu>=2.3.3"
PyPI tensorflow-cpu ≥ 2.4.0 < 2.4.2 2.4.2 pip install "tensorflow-cpu>=2.4.2"
PyPI tensorflow-gpu < 2.1.4 2.1.4 pip install "tensorflow-gpu>=2.1.4"
PyPI tensorflow-gpu ≥ 2.2.0 < 2.2.3 2.2.3 pip install "tensorflow-gpu>=2.2.3"
PyPI tensorflow-gpu ≥ 2.3.0 < 2.3.3 2.3.3 pip install "tensorflow-gpu>=2.3.3"
PyPI tensorflow-gpu ≥ 2.4.0 < 2.4.2 2.4.2 pip install "tensorflow-gpu>=2.4.2"
PyPI tensorflow-gpu < 2.1.4 2.1.4 pip install "tensorflow-gpu>=2.1.4"
PyPI tensorflow-gpu ≥ 2.2.0 < 2.2.3 2.2.3 pip install "tensorflow-gpu>=2.2.3"
PyPI tensorflow-gpu ≥ 2.3.0 < 2.3.3 2.3.3 pip install "tensorflow-gpu>=2.3.3"
PyPI tensorflow-gpu ≥ 2.4.0 < 2.4.2 2.4.2 pip install "tensorflow-gpu>=2.4.2"

Per OSV / GitHub Advisories (GHSA-vvg4-vgrv-xfr7, PYSEC-2021-250, PYSEC-2021-541, PYSEC-2021-739). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
googletensorflow< 2.1.4
googletensorflow≥ 2.2.0 < 2.2.3
googletensorflow≥ 2.3.0 < 2.3.3
googletensorflow≥ 2.4.0 < 2.4.2

Official sources

References

Links published by the sources. Open them with care.