Live threats

All CVEs / Google

CVE-2020-26271Google Tensorflow

Low 3.3

Priority
20
CVSS 3.1
3.3
EPSS
0.2%
probability of exploitation in 30 days · percentile 13
Auth required
Yes
Published
Dec 10, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-125, CWE-908
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

What happens

In affected versions of TensorFlow under certain cases, loading a saved model can result in accessing uninitialized memory while building the computation graph. The MakeEdge function creates an edge between one output tensor of the src node (given by output_index) and the input slot of the dst node (given by input_index). This is only possible if the types of the tensors on both sides coincide, so the function begins by obtaining the corresponding DataType values and comparing these for equality. However, there is no check that the indices point to inside of the arrays they index into. Thus, this can result in accessing data out of bounds of the corresponding heap allocated arrays. In most scenarios, this can manifest as unitialized data access, but if the index points far away from the boundaries of the arrays this can be used to leak addresses from the library. This is fixed in versions 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2, and 2.4.0.

Original NVD text.

What to do

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

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI tensorflow < 1.15.5 1.15.5 pip install "tensorflow>=1.15.5"
PyPI tensorflow ≥ 2.0.0 < 2.0.4 2.0.4 pip install "tensorflow>=2.0.4"
PyPI tensorflow ≥ 2.1.0 < 2.1.3 2.1.3 pip install "tensorflow>=2.1.3"
PyPI tensorflow ≥ 2.2.0 < 2.2.2 2.2.2 pip install "tensorflow>=2.2.2"
PyPI tensorflow ≥ 2.3.0 < 2.3.2 2.3.2 pip install "tensorflow>=2.3.2"
PyPI tensorflow < 1.15.5 1.15.5 pip install "tensorflow>=1.15.5"
PyPI tensorflow ≥ 2.0.0 < 2.0.4 2.0.4 pip install "tensorflow>=2.0.4"
PyPI tensorflow ≥ 2.1.0 < 2.1.3 2.1.3 pip install "tensorflow>=2.1.3"
PyPI tensorflow ≥ 2.2.0 < 2.2.2 2.2.2 pip install "tensorflow>=2.2.2"
PyPI tensorflow-cpu < 1.15.5 1.15.5 pip install "tensorflow-cpu>=1.15.5"
PyPI tensorflow-cpu ≥ 2.0.0 < 2.0.4 2.0.4 pip install "tensorflow-cpu>=2.0.4"
PyPI tensorflow-cpu ≥ 2.1.0 < 2.1.3 2.1.3 pip install "tensorflow-cpu>=2.1.3"
PyPI tensorflow-cpu ≥ 2.2.0 < 2.2.2 2.2.2 pip install "tensorflow-cpu>=2.2.2"
PyPI tensorflow-cpu ≥ 2.3.0 < 2.3.2 2.3.2 pip install "tensorflow-cpu>=2.3.2"
PyPI tensorflow-cpu < 1.15.5 1.15.5 pip install "tensorflow-cpu>=1.15.5"
PyPI tensorflow-cpu ≥ 2.0.0 < 2.0.4 2.0.4 pip install "tensorflow-cpu>=2.0.4"
PyPI tensorflow-cpu ≥ 2.1.0 < 2.1.3 2.1.3 pip install "tensorflow-cpu>=2.1.3"
PyPI tensorflow-cpu ≥ 2.2.0 < 2.2.2 2.2.2 pip install "tensorflow-cpu>=2.2.2"
PyPI tensorflow-gpu < 1.15.5 1.15.5 pip install "tensorflow-gpu>=1.15.5"
PyPI tensorflow-gpu ≥ 2.0.0 < 2.0.4 2.0.4 pip install "tensorflow-gpu>=2.0.4"
PyPI tensorflow-gpu ≥ 2.1.0 < 2.1.3 2.1.3 pip install "tensorflow-gpu>=2.1.3"
PyPI tensorflow-gpu ≥ 2.2.0 < 2.2.2 2.2.2 pip install "tensorflow-gpu>=2.2.2"
PyPI tensorflow-gpu ≥ 2.3.0 < 2.3.2 2.3.2 pip install "tensorflow-gpu>=2.3.2"
PyPI tensorflow-gpu < 1.15.5 1.15.5 pip install "tensorflow-gpu>=1.15.5"
PyPI tensorflow-gpu ≥ 2.0.0 < 2.0.4 2.0.4 pip install "tensorflow-gpu>=2.0.4"
PyPI tensorflow-gpu ≥ 2.1.0 < 2.1.3 2.1.3 pip install "tensorflow-gpu>=2.1.3"
PyPI tensorflow-gpu ≥ 2.2.0 < 2.2.2 2.2.2 pip install "tensorflow-gpu>=2.2.2"

Per OSV / GitHub Advisories (GHSA-q263-fvxm-m5mw, PYSEC-2020-257, PYSEC-2020-302, PYSEC-2020-337). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
googletensorflow< 1.15.5
googletensorflow≥ 2.0.0 < 2.0.4
googletensorflow≥ 2.1.0 < 2.1.3
googletensorflow≥ 2.2.0 < 2.2.2
googletensorflow≥ 2.3.0 < 2.3.2

Official sources

References

Links published by the sources. Open them with care.