Vulnerabilities / CVE-2022-35939

critical

CVE-2022-35939

TensorFlow vulnerable to OOB write in `scatter_nd` in TF Lite

Published Modified CWE 787
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA7.0CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H
Bitnami9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, Bitnami. Rated lower by GHSA (high).

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.

Affected packages and fixed versions

SourcePackageFixed in
bitnami::Bitnami Vulnerability Databasetensorflow2.7.2, 2.8.1, 2.9.1
pip::GitHub Security Advisory piptensorflow, tensorflow-cpu, tensorflow-gpu2.7.2, 2.8.1, 2.9.1
Show all 4 entries from 2 sources
SourcePackageFixed in
bitnami::Bitnami Vulnerability Databasetensorflow2.7.2, 2.8.1, 2.9.1
pip::GitHub Security Advisory piptensorflow2.7.2, 2.8.1, 2.9.1
pip::GitHub Security Advisory piptensorflow-cpu2.7.2, 2.8.1, 2.9.1
pip::GitHub Security Advisory piptensorflow-gpu2.7.2, 2.8.1, 2.9.1

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.