Vulnerabilities / CVE-2022-35937

critical

CVE-2022-35937

TensorFlow vulnerable to OOB read in `Gather_nd` in TF Lite

Published Modified CWE 125
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.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
GHSA7.0CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H
Bitnami9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/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 `GatherNd` function takes arguments that determine the sizes of inputs and outputs. If the inputs given are greater than or equal to the sizes of the outputs, an out-of-bounds memory read is triggered. This issue has been patched in GitHub commit 595a65a3e224a0362d7e68c2213acfc2b499a196. 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.