CVE-2022-35940
Int overflow in `RaggedRangeOp` in Tensoflow
TensorFlow is an open source platform for machine learning. The RaggedRangOp function takes an argument limits that is eventually used to construct a TensorShape as an int64. If limits is a very large float, it can overflow when converted to an int64. This triggers an InvalidArgument but also throws an abort signal that crashes the program. We have patched the issue in GitHub commit 37cefa91bee4eace55715eeef43720b958a01192. 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
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
5.9
Int overflow in `RaggedRangeOp` in Tensoflow
TensorFlow is an open source platform for machine learning. The RaggedRangOp function takes an argument limits that is eventually used to construct a TensorShape as an int64. If limits is a very large float, it can overflow when converted to an int64. This triggers an InvalidArgument but also throws an abort signal that crashes the program. We have patched the issue in GitHub commit 37cefa91bee4eace55715eeef43720b958a01192. 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-35940- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-190
- Updated
- 2026-11-02
EUVDEUVD-2022-6976
5.9
TensorFlow is an open source platform for machine learning. The RaggedRangOp function takes an argument limits that is eventually used to construct a TensorShape as an int64. If limits is a very large float, it can overflow when converted to an int64. This triggers an InvalidArgument but also throws an abort signal that crashes the program. We have patched the issue in GitHub commit 37cefa91bee4eace55715eeef43720b958a01192. 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-6976- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-x989-q2pq-4q5x
5.9
TensorFlow vulnerable to Int overflow in `RaggedRangeOp`
Impact
The RaggedRangOp function takes an argument limits that is eventually used to construct a TensorShape as an int64. If limits is a very large float, it can overflow when converted to an int64. This triggers an InvalidArgument but also throws an abort signal that crashes the program.
import tensorflow as tf
tf.raw_ops.RaggedRange(starts=[1.1,0.1],limits=[10.0,1e20],deltas=[1,1])
Patches
We have patched the issue in GitHub commit 37cefa91bee4eace55715eeef43720b958a01192.
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 Jingyi Shi.
- Record
GHSA-x989-q2pq-4q5x- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-190
- Updated
- 2026-11-02
NVD
5.9
TensorFlow is an open source platform for machine learning. The RaggedRangOp function takes an argument limits that is eventually used to construct a TensorShape as an int64. If limits is a very large float, it can overflow when converted to an int64. This triggers an InvalidArgument but also throws an abort signal that crashes the program. We have patched the issue in GitHub commit 37cefa91bee4eace55715eeef43720b958a01192. 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-35940- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-190
- Updated
- 2026-11-02
OSV
5.9
Int overflow in `RaggedRangeOp` in Tensoflow
TensorFlow is an open source platform for machine learning. The RaggedRangOp function takes an argument limits that is eventually used to construct a TensorShape as an int64. If limits is a very large float, it can overflow when converted to an int64. This triggers an InvalidArgument but also throws an abort signal that crashes the program. We have patched the issue in GitHub commit 37cefa91bee4eace55715eeef43720b958a01192. 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-35940- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-190
- Updated
- 2026-11-02
OSVGHSA-x989-q2pq-4q5x
5.9
TensorFlow vulnerable to Int overflow in `RaggedRangeOp`
Impact
The RaggedRangOp function takes an argument limits that is eventually used to construct a TensorShape as an int64. If limits is a very large float, it can overflow when converted to an int64. This triggers an InvalidArgument but also throws an abort signal that crashes the program.
import tensorflow as tf
tf.raw_ops.RaggedRange(starts=[1.1,0.1],limits=[10.0,1e20],deltas=[1,1])
Patches
We have patched the issue in GitHub commit 37cefa91bee4eace55715eeef43720b958a01192.
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 Jingyi Shi.
- Record
GHSA-x989-q2pq-4q5x- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-190
- Updated
- 2026-11-02
Show 5 moreShow less
OSVPYSEC-2026-1047
5.9
TensorFlow vulnerable to Int overflow in `RaggedRangeOp`
Impact
The RaggedRangOp function takes an argument limits that is eventually used to construct a TensorShape as an int64. If limits is a very large float, it can overflow when converted to an int64. This triggers an InvalidArgument but also throws an abort signal that crashes the program.
import tensorflow as tf
tf.raw_ops.RaggedRange(starts=[1.1,0.1],limits=[10.0,1e20],deltas=[1,1])
Patches
We have patched the issue in GitHub commit 37cefa91bee4eace55715eeef43720b958a01192.
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 Jingyi Shi.
- Record
PYSEC-2026-1047- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVPYSEC-2026-3259
5.9
TensorFlow vulnerable to Int overflow in `RaggedRangeOp`
Impact
The RaggedRangOp function takes an argument limits that is eventually used to construct a TensorShape as an int64. If limits is a very large float, it can overflow when converted to an int64. This triggers an InvalidArgument but also throws an abort signal that crashes the program.
import tensorflow as tf
tf.raw_ops.RaggedRange(starts=[1.1,0.1],limits=[10.0,1e20],deltas=[1,1])
Patches
We have patched the issue in GitHub commit 37cefa91bee4eace55715eeef43720b958a01192.
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 Jingyi Shi.
- Record
PYSEC-2026-3259- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVPYSEC-2026-3381
5.9
TensorFlow vulnerable to Int overflow in `RaggedRangeOp`
Impact
The RaggedRangOp function takes an argument limits that is eventually used to construct a TensorShape as an int64. If limits is a very large float, it can overflow when converted to an int64. This triggers an InvalidArgument but also throws an abort signal that crashes the program.
import tensorflow as tf
tf.raw_ops.RaggedRange(starts=[1.1,0.1],limits=[10.0,1e20],deltas=[1,1])
Patches
We have patched the issue in GitHub commit 37cefa91bee4eace55715eeef43720b958a01192.
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 Jingyi Shi.
- Record
PYSEC-2026-3381- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVBIT-tensorflow-2022-35940 No score
Int overflow in `RaggedRangeOp` in Tensoflow
TensorFlow is an open source platform for machine learning. The RaggedRangOp function takes an argument limits that is eventually used to construct a TensorShape as an int64. If limits is a very large float, it can overflow when converted to an int64. This triggers an InvalidArgument but also throws an abort signal that crashes the program. We have patched the issue in GitHub commit 37cefa91bee4eace55715eeef43720b958a01192. 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-35940- 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-35940 is a medium vulnerability (CVSS 5.9) 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.70%, the 53rd percentile. Fixed in tensorflow 2.7.2.
References
github.com/tensorflow/tensorflow/security/advisories/GHSA-x989-q2pq-4q5x
github.com/tensorflow/tensorflow/commit/37cefa91bee4eace55715eeef43720b958a01192
github.com/tensorflow/tensorflow/blob/0b6b491d21d6a4eb5fbab1cca565bc1e94ca9543/tensorflow/core/kernels/ragged_range_op.cc
github.com/tensorflow/tensorflow/releases/tag/v2.10.0
nvd.nist.gov/vuln/detail/CVE-2022-35940
github.com/advisories/GHSA-x989-q2pq-4q5x
Show 64 moreShow less
github.com/CVEProject/cvelistV5/tree/main/cves/2022/35xxx/CVE-2022-35940.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.