Loading HuntDB...

GHSA-qx3f-p745-w4hr

GitHub Security Advisory

Integer overflow in Tensorflow

✓ GitHub Reviewed HIGH Has CVE

Advisory Details

### Impact
The implementation of `Range` suffers from integer overflows. These can trigger undefined behavior or, in some scenarios, extremely large allocations.

### Patches
We have patched the issue in GitHub commit [f0147751fd5d2ff23251149ebad9af9f03010732](https://github.com/tensorflow/tensorflow/commit/f0147751fd5d2ff23251149ebad9af9f03010732) (merging [#51733](https://github.com/tensorflow/tensorflow/pull/51733)).

The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, as these are also affected and still in supported range.
### For more information
Please consult [our security guide](https://github.com/tensorflow/tensorflow/blob/master/SECURITY.md) for more information regarding the security model and how to contact us with issues and questions.
### Attribution
This vulnerability has been reported externally via a [GitHub issue](https://github.com/tensorflow/tensorflow/issues/52676).

Affected Packages

PyPI tensorflow
Affected versions: 0 (fixed in 2.5.3)
PyPI tensorflow
Affected versions: 2.6.0 (fixed in 2.6.3)
PyPI tensorflow
Affected versions: 2.7.0 (fixed in 2.7.1)
PyPI tensorflow-cpu
Affected versions: 0 (fixed in 2.5.3)
PyPI tensorflow-cpu
Affected versions: 2.6.0 (fixed in 2.6.3)
PyPI tensorflow-cpu
Affected versions: 2.7.0 (fixed in 2.7.1)
PyPI tensorflow-gpu
Affected versions: 0 (fixed in 2.5.3)
PyPI tensorflow-gpu
Affected versions: 2.6.0 (fixed in 2.6.3)
PyPI tensorflow-gpu
Affected versions: 2.7.0 (fixed in 2.7.1)

Related CVEs

Key Information

GHSA ID
GHSA-qx3f-p745-w4hr
Published
February 9, 2022 11:54 PM
Last Modified
November 13, 2024 10:38 PM
CVSS Score
7.5 /10
Primary Ecosystem
PyPI
Primary Package
tensorflow
GitHub Reviewed
✓ Yes

Dataset

Last updated: November 23, 2025 6:29 AM

Data from GitHub Advisory Database. This information is provided for research and educational purposes.