CVE-2022-35939
CWE-787Published: September 16, 2022· Updated: Jun 17, 2026
Official Description
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.
Risk Analysis
The ScatterNd function in TensorFlow is vulnerable to improper index handling, which can lead to memory corruption or application crashes. This critical flaw is remotely exploitable and carries a 9.8 CVSS score.
There is no known public exploit, and the vulnerability is not in the CISA KEV. It is remotely exploitable with low complexity.
Update to TensorFlow 2.10.0 or apply the specific patch commit to versions 2.9.1, 2.8.1, or 2.7.2.
Technical Analysis
CVE-2022-35939 can be exploited remotely over the network without requiring physical or adjacent access, significantly expanding the attack surface for threat actors.
The vulnerability requires no privileges and no user interaction, making it a prime target for automated exploitation campaigns and worm-like propagation.
A successful exploit results in complete confidentiality breach (data exposure), full integrity compromise (data manipulation), availability disruption (denial of service), with a CVSS base score of 9.8.
From a weakness classification perspective (CWE-787): Out-of-bounds write vulnerabilities can lead to data corruption, crashes, or arbitrary code execution.
CVSS v3.1 Vector Breakdown
Affected Vendors & Products
Exploit & PoC Resources
Official Patches & Advisories
All References (6)
Quick Facts
Related CVEs (CWE-787)
Recommended Actions
- →Apply vendor patches immediately
- →Monitor CVE-2022-35939 in threat intel feeds
- →Review IDS/IPS signatures for exploitation attempts