CVE-2022-35937
OOB read in `Gather_nd` op in TensorFlow Lite
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
7.0
OOB read in `Gather_nd` op in TensorFlow Lite
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.
- Record
CVE-2022-35937- 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 - Weakness
- CWE-125
- Updated
- 2026-11-02
EUVDEUVD-2022-6903
7.0
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.
- Record
EUVD-2022-6903- 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 - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-pxrw-j2fv-hx3h
7.0
TensorFlow vulnerable to OOB read in `Gather_nd` in TF Lite
Impact
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.
Patches
We have patched the issue 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.
For more information
Please consult our security guide for more information regarding the security model and how to contact us with issues and questions.
Attribution
This vulnerability has been reported by Hui Peng from Baidu Security.
- Record
GHSA-pxrw-j2fv-hx3h- 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 - Weakness
- CWE-125
- Updated
- 2026-11-02
NVD
7.0
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.
- Record
CVE-2022-35937- 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 - 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 - Weakness
- CWE-125
- Updated
- 2026-11-02
OSV
7.0
OOB read in `Gather_nd` op in TensorFlow Lite
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.
- Record
CVE-2022-35937- 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 - Weakness
- CWE-125
- Updated
- 2026-11-02
OSVGHSA-pxrw-j2fv-hx3h
7.0
TensorFlow vulnerable to OOB read in `Gather_nd` in TF Lite
Impact
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.
Patches
We have patched the issue 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.
For more information
Please consult our security guide for more information regarding the security model and how to contact us with issues and questions.
Attribution
This vulnerability has been reported by Hui Peng from Baidu Security.
- Record
GHSA-pxrw-j2fv-hx3h- 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 - Weakness
- CWE-125
- Updated
- 2026-11-02
Show 5 moreShow less
OSVPYSEC-2026-1027
7.0
TensorFlow vulnerable to OOB read in `Gather_nd` in TF Lite
Impact
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.
Patches
We have patched the issue 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.
For more information
Please consult our security guide for more information regarding the security model and how to contact us with issues and questions.
Attribution
This vulnerability has been reported by Hui Peng from Baidu Security.
- Record
PYSEC-2026-1027- 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 - Updated
- 2026-11-02
OSVPYSEC-2026-3226
7.0
TensorFlow vulnerable to OOB read in `Gather_nd` in TF Lite
Impact
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.
Patches
We have patched the issue 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.
For more information
Please consult our security guide for more information regarding the security model and how to contact us with issues and questions.
Attribution
This vulnerability has been reported by Hui Peng from Baidu Security.
- Record
PYSEC-2026-3226- 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 - Updated
- 2026-11-02
OSVPYSEC-2026-3359
7.0
TensorFlow vulnerable to OOB read in `Gather_nd` in TF Lite
Impact
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.
Patches
We have patched the issue 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.
For more information
Please consult our security guide for more information regarding the security model and how to contact us with issues and questions.
Attribution
This vulnerability has been reported by Hui Peng from Baidu Security.
- Record
PYSEC-2026-3359- 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 - Updated
- 2026-11-02
OSVBIT-tensorflow-2022-35937 No score
OOB read in `Gather_nd` op in TensorFlow Lite
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.
- Record
BIT-tensorflow-2022-35937- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:12355-1 No score
tensorflow-lite-2.10.0-1.1 on GA media
These are all security issues fixed in the tensorflow-lite-2.10.0-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:12355-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
tensorflowPyPI |
before 2.7.2 | 2.7.2 |
tensorflowPyPI |
2.8.0 up to 2.8.1 | 2.8.1 |
tensorflowPyPI |
2.9.0 up to 2.9.1 | 2.9.1 |
tensorflow-cpuPyPI |
before 2.7.2 | 2.7.2 |
tensorflow-cpuPyPI |
2.8.0 up to 2.8.1 | 2.8.1 |
tensorflow-cpuPyPI |
2.9.0 up to 2.9.1 | 2.9.1 |
tensorflow-gpuPyPI |
before 2.7.2 | 2.7.2 |
tensorflow-gpuPyPI |
2.8.0 up to 2.8.1 | 2.8.1 |
tensorflow-gpuPyPI |
2.9.0 up to 2.9.1 | 2.9.1 |
tensorflowBitnami |
2.7.0 up to 2.7.2, 2.8.0 up to 2.8.1, 2.9.0 up to 2.9.1 | 2.7.22.8.12.9.1 |
Show 6 moreShow less
| Package | Affected | Fixed |
|---|---|---|
tensorflowPyPI |
before 2.7.2, plus listed versions 0.12.00.12.11.0.01.0.11.1.0 Show 45 moreShow less1.10.01.10.11.11.01.12.01.12.21.12.31.13.11.13.21.14.01.15.01.15.21.15.31.15.41.15.51.2.01.2.11.3.01.4.01.4.11.5.01.5.11.6.01.7.01.7.11.8.01.9.02.0.02.0.12.0.22.0.32.0.42.1.02.1.12.1.22.1.32.1.42.2.02.2.12.2.22.2.32.3.02.3.12.3.22.3.32.3.4 |
2.7.2 |
tensorflow-cpuPyPI |
before 2.7.2, plus listed versions 1.15.02.1.02.1.12.1.22.1.3 Show 27 moreShow less2.1.42.2.02.2.12.2.22.2.32.3.02.3.12.3.22.3.32.3.42.4.02.4.12.4.22.4.32.4.42.5.02.5.12.5.22.5.32.6.02.6.12.6.22.6.32.6.42.6.52.7.02.7.1 |
2.7.2 |
tensorflow-gpuPyPI |
before 2.7.2, plus listed versions 0.12.00.12.11.0.01.0.11.1.0 Show 45 moreShow less1.10.01.10.11.11.01.12.01.12.21.12.31.13.11.13.21.14.01.15.01.15.21.15.31.15.41.15.51.2.01.2.11.3.01.4.01.4.11.5.01.5.11.6.01.7.01.7.11.8.01.9.02.0.02.0.12.0.22.0.32.0.42.1.02.1.12.1.22.1.32.1.42.2.02.2.12.2.22.2.32.3.02.3.12.3.22.3.32.3.4 |
2.7.2 |
tensorflow-gpuPyPI |
before 2.7.2, 2.8.0 up to 2.8.1, 2.9.0 up to 2.9.1, plus listed versions 0.12.00.12.11.0.01.0.11.1.0 Show 45 moreShow less1.10.01.10.11.11.01.12.01.12.21.12.31.13.11.13.21.14.01.15.01.15.21.15.31.15.41.15.51.2.01.2.11.3.01.4.01.4.11.5.01.5.11.6.01.7.01.7.11.8.01.9.02.0.02.0.12.0.22.0.32.0.42.1.02.1.12.1.22.1.32.1.42.2.02.2.12.2.22.2.32.3.02.3.12.3.22.3.32.3.4 |
2.7.22.8.12.9.1 |
tensorflowPyPI |
before 2.7.2, 2.8.0 up to 2.8.1, 2.9.0 up to 2.9.1, plus listed versions 0.12.00.12.11.0.01.0.11.1.0 Show 45 moreShow less1.10.01.10.11.11.01.12.01.12.21.12.31.13.11.13.21.14.01.15.01.15.21.15.31.15.41.15.51.2.01.2.11.3.01.4.01.4.11.5.01.5.11.6.01.7.01.7.11.8.01.9.02.0.02.0.12.0.22.0.32.0.42.1.02.1.12.1.22.1.32.1.42.2.02.2.12.2.22.2.32.3.02.3.12.3.22.3.32.3.4 |
2.7.22.8.12.9.1 |
tensorflow-cpuPyPI |
before 2.7.2, 2.8.0 up to 2.8.1, 2.9.0 up to 2.9.1, plus listed versions 1.15.02.1.02.1.12.1.22.1.3 Show 27 moreShow less2.1.42.2.02.2.12.2.22.2.32.3.02.3.12.3.22.3.32.3.42.4.02.4.12.4.22.4.32.4.42.5.02.5.12.5.22.5.32.6.02.6.12.6.22.6.32.6.42.6.52.7.02.7.1 |
2.7.22.8.12.9.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| facts | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-35937 is a high vulnerability (CVSS 7.0) in Google Tensorflow, published September 16, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.57%, the 47th percentile. Fixed in tensorflow 2.7.2.
References
github.com/tensorflow/tensorflow/security/advisories/GHSA-pxrw-j2fv-hx3h
github.com/tensorflow/tensorflow/commit/595a65a3e224a0362d7e68c2213acfc2b499a196
github.com/tensorflow/tensorflow/blob/f463040eb3997e42e60a2ffc6dc72de7ef11dbb4/tensorflow/lite/kernels/gather_nd.cc
github.com/tensorflow/tensorflow/releases/tag/v2.10.0
nvd.nist.gov/vuln/detail/CVE-2022-35937
github.com/advisories/GHSA-pxrw-j2fv-hx3h
Show 64 moreShow less
github.com/CVEProject/cvelistV5/tree/main/cves/2022/35xxx/CVE-2022-35937.json
github.com/tensorflow/tensorflow
pypi.org/project/tensorflow-gpu
pypi.org/project/tensorflow
pypi.org/project/tensorflow-cpu
suse.com/security/cve/CVE-2022-35934
suse.com/security/cve/CVE-2022-35935
suse.com/security/cve/CVE-2022-35937
suse.com/security/cve/CVE-2022-35938
suse.com/security/cve/CVE-2022-35939
suse.com/security/cve/CVE-2022-35940
suse.com/security/cve/CVE-2022-35941
suse.com/security/cve/CVE-2022-35952
suse.com/security/cve/CVE-2022-35959
suse.com/security/cve/CVE-2022-35960
suse.com/security/cve/CVE-2022-35963
suse.com/security/cve/CVE-2022-35964
suse.com/security/cve/CVE-2022-35965
suse.com/security/cve/CVE-2022-35966
suse.com/security/cve/CVE-2022-35967
suse.com/security/cve/CVE-2022-35968
suse.com/security/cve/CVE-2022-35969
suse.com/security/cve/CVE-2022-35970
suse.com/security/cve/CVE-2022-35971
suse.com/security/cve/CVE-2022-35972
suse.com/security/cve/CVE-2022-35973
suse.com/security/cve/CVE-2022-35974
suse.com/security/cve/CVE-2022-35979
suse.com/security/cve/CVE-2022-35981
suse.com/security/cve/CVE-2022-35982
suse.com/security/cve/CVE-2022-35983
suse.com/security/cve/CVE-2022-35984
suse.com/security/cve/CVE-2022-35985
suse.com/security/cve/CVE-2022-35986
suse.com/security/cve/CVE-2022-35987
suse.com/security/cve/CVE-2022-35988
suse.com/security/cve/CVE-2022-35989
suse.com/security/cve/CVE-2022-35990
suse.com/security/cve/CVE-2022-35991
suse.com/security/cve/CVE-2022-35992
suse.com/security/cve/CVE-2022-35993
suse.com/security/cve/CVE-2022-35994
suse.com/security/cve/CVE-2022-35995
suse.com/security/cve/CVE-2022-35996
suse.com/security/cve/CVE-2022-35997
suse.com/security/cve/CVE-2022-35998
suse.com/security/cve/CVE-2022-35999
suse.com/security/cve/CVE-2022-36000
suse.com/security/cve/CVE-2022-36001
suse.com/security/cve/CVE-2022-36002
suse.com/security/cve/CVE-2022-36003
suse.com/security/cve/CVE-2022-36004
suse.com/security/cve/CVE-2022-36005
suse.com/security/cve/CVE-2022-36011
suse.com/security/cve/CVE-2022-36012
suse.com/security/cve/CVE-2022-36013
suse.com/security/cve/CVE-2022-36014
suse.com/security/cve/CVE-2022-36015
suse.com/security/cve/CVE-2022-36016
suse.com/security/cve/CVE-2022-36017
suse.com/security/cve/CVE-2022-36018
suse.com/security/cve/CVE-2022-36019
suse.com/security/cve/CVE-2022-36026
suse.com/security/cve/CVE-2022-36027
Left out here: 82 versions. The JSON record has them.