# CVE-2022-35937: OOB read in `Gather_nd` op in TensorFlow Lite

- Severity: High 7.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.58%, higher than 48% of CVEs (2026-12-01)
- Published: 2022-09-16T19:40:20.000Z
- Modified: 2026-09-08T08:48:20.385Z
- Also known as: GHSA-pxrw-j2fv-hx3h, BIT-TENSORFLOW-2022-35937, PYSEC-2026-1027, PYSEC-2026-3226, PYSEC-2026-3359
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- tensorflow tensorflow: < 2.7.2; >= 2.8.0, < 2.8.1; >= 2.9.0, < 2.9.1
- tensorflow (PyPI): before 2.7.2; from 2.8.0 before 2.8.1; from 2.9.0 before 2.9.1
- tensorflow-cpu (PyPI): before 2.7.2; from 2.8.0 before 2.8.1; from 2.9.0 before 2.9.1
- tensorflow-gpu (PyPI): before 2.7.2; from 2.8.0 before 2.8.1; from 2.9.0 before 2.9.1
- google tensorflow: from 2.7.0 before 2.7.2; from 2.8.0 before 2.8.1; from 2.9.0 before 2.9.1; 2.10
- tensorflow (Bitnami): from 2.7.0 before 2.7.2; from 2.8.0 before 2.8.1; from 2.9.0 before 2.9.1

## Every score

- GitHub_M: CVSS:3.1 7.0 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H`
- GitHub: CVSS:3.1 7.0 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 7.0 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/tensorflow/tensorflow/security/advisories/GHSA-pxrw-j2fv-hx3h> (advisory, patch, third-party-advisory, web)
- <https://github.com/tensorflow/tensorflow/commit/595a65a3e224a0362d7e68c2213acfc2b499a196> (advisory, patch, third-party-advisory, web)
- <https://github.com/tensorflow/tensorflow/blob/f463040eb3997e42e60a2ffc6dc72de7ef11dbb4/tensorflow/lite/kernels/gather_nd.cc#L105-L111> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-35937> (advisory, web)
- <https://github.com/tensorflow/tensorflow> (package)
- <https://github.com/tensorflow/tensorflow/releases/tag/v2.10.0> (web)
- <https://pypi.org/project/tensorflow-gpu> (package)
- <https://github.com/advisories/GHSA-pxrw-j2fv-hx3h> (advisory)
- <https://pypi.org/project/tensorflow> (package)
- <https://pypi.org/project/tensorflow-cpu> (package)

## Sources

- CVE List: [CVE-2022-35937](https://www.cve.org/CVERecord?id=CVE-2022-35937), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-pxrw-j2fv-hx3h](https://github.com/advisories/GHSA-pxrw-j2fv-hx3h), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2022-35937](https://nvd.nist.gov/vuln/detail/CVE-2022-35937), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1027](https://osv.dev/vulnerability/PYSEC-2026-1027), CC-BY-4.0, modified 2026-07-13
- PyPA Advisory Database: [PYSEC-2026-3226](https://osv.dev/vulnerability/PYSEC-2026-3226), CC-BY-4.0, modified 2026-07-13
- PyPA Advisory Database: [PYSEC-2026-3359](https://osv.dev/vulnerability/PYSEC-2026-3359), CC-BY-4.0, modified 2026-07-13
- Bitnami Vulnerability Database: [BIT-TENSORFLOW-2022-35937](https://osv.dev/vulnerability/BIT-TENSORFLOW-2022-35937), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-35937 · Whole record: https://cve.day/CVE-2022-35937.json · Rebuilt by cve.day 2026-11-25T22:58:15.036Z
