Live threats

All CVEs / Google

CVE-2022-35939Google Tensorflow

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
0.5%
probability of exploitation in 30 days · percentile 39
Auth required
No
Published
Sep 16, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-787
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

TensorFlow is an open source platform for machine learning. The `ScatterNd` function takes an input argument that determines the indices of of the output tensor. An input index greater than the output tensor or less than zero will either write content at the wrong index or trigger a crash. We have patched the issue in GitHub commit b4d4b4cb019bd7240a52daa4ba61e3cc814f0384. The fix will be included in TensorFlow 2.10.0. We will also cherrypick this commit on TensorFlow 2.9.1, TensorFlow 2.8.1, and TensorFlow 2.7.2, as these are also affected and still in supported range. There are no known workarounds for this issue.

Original NVD text.

What to do

  1. Apply the vendor's security update for Tensorflow.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI tensorflow < 2.7.2 2.7.2 pip install "tensorflow>=2.7.2"
PyPI tensorflow ≥ 2.8.0 < 2.8.1 2.8.1 pip install "tensorflow>=2.8.1"
PyPI tensorflow ≥ 2.9.0 < 2.9.1 2.9.1 pip install "tensorflow>=2.9.1"
PyPI tensorflow < 2.7.2 2.7.2 pip install "tensorflow>=2.7.2"
PyPI tensorflow ≥ 2.8.0 < 2.8.1 2.8.1 pip install "tensorflow>=2.8.1"
PyPI tensorflow ≥ 2.9.0 < 2.9.1 2.9.1 pip install "tensorflow>=2.9.1"
PyPI tensorflow-cpu < 2.7.2 2.7.2 pip install "tensorflow-cpu>=2.7.2"
PyPI tensorflow-cpu ≥ 2.8.0 < 2.8.1 2.8.1 pip install "tensorflow-cpu>=2.8.1"
PyPI tensorflow-cpu ≥ 2.9.0 < 2.9.1 2.9.1 pip install "tensorflow-cpu>=2.9.1"
PyPI tensorflow-cpu < 2.7.2 2.7.2 pip install "tensorflow-cpu>=2.7.2"
PyPI tensorflow-cpu ≥ 2.8.0 < 2.8.1 2.8.1 pip install "tensorflow-cpu>=2.8.1"
PyPI tensorflow-cpu ≥ 2.9.0 < 2.9.1 2.9.1 pip install "tensorflow-cpu>=2.9.1"
PyPI tensorflow-gpu < 2.7.2 2.7.2 pip install "tensorflow-gpu>=2.7.2"
PyPI tensorflow-gpu ≥ 2.8.0 < 2.8.1 2.8.1 pip install "tensorflow-gpu>=2.8.1"
PyPI tensorflow-gpu ≥ 2.9.0 < 2.9.1 2.9.1 pip install "tensorflow-gpu>=2.9.1"
PyPI tensorflow-gpu < 2.7.2 2.7.2 pip install "tensorflow-gpu>=2.7.2"
PyPI tensorflow-gpu ≥ 2.8.0 < 2.8.1 2.8.1 pip install "tensorflow-gpu>=2.8.1"
PyPI tensorflow-gpu ≥ 2.9.0 < 2.9.1 2.9.1 pip install "tensorflow-gpu>=2.9.1"

Per OSV / GitHub Advisories (GHSA-ffjm-4qwc-7cmf, PYSEC-2026-3171, PYSEC-2026-3319, PYSEC-2026-989). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
googletensorflow≥ 2.7.0 < 2.7.2
googletensorflow≥ 2.8.0 < 2.8.1
googletensorflow≥ 2.9.0 < 2.9.1
googletensorflow2.10
googletensorflow2.10
googletensorflow2.10
googletensorflow2.10

Official sources

References

Links published by the sources. Open them with care.