Integer Overflow or Wraparound in TensorFlow
Summary
GHSA-wcv5-vrvr-3rx2: Integer Overflow or Wraparound in TensorFlow. Affects tensorflow across 3 version ranges.
< 2.5.3
>= 2.6.0, < 2.6.3
>= 2.7.0, < 2.7.1
Fixed in 2.5.3, 2.6.3 or 2.7.1, depending on the release line you run. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
TensorFlow is an open-source machine learning framework developed by Google. It provides a comprehensive ecosystem of tools, libraries, and resources for building and deploying machine learning models. TensorFlow is widely used in various domains, including research, industry, and academia. However, a vulnerability has been discovered in the Grappler component of TensorFlow that can lead to a denial of service attack.
Vulnerability Detail
The vulnerability in TensorFlow is due to an integer overflow or wraparound issue in the Grappler component's constant folding functionality. This vulnerability can be triggered when processing user-controlled input, specifically in the PartialTensorShape constructor. An attacker can exploit this vulnerability to cause a CHECK-failure (assertion failure), resulting in a denial of service condition. The impact of this vulnerability is considered moderate, with a CVSS score of 5.5.
How To Fix
Latest published version: 2.21.0 as of 22 Oct 2026
pip install --upgrade "tensorflow==2.21.0"
Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.
If you can't move to the latest
The minimum fixed version depends on the release line you run.
-
< 2.5.32.5.3pip install --upgrade "tensorflow==2.5.3" -
>= 2.6.0, < 2.6.32.6.3pip install --upgrade "tensorflow==2.6.3" -
>= 2.7.0, < 2.7.12.7.1pip install --upgrade "tensorflow==2.7.1"
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
There is no specific workaround provided for this vulnerability. Users are strongly encouraged to update to the patched versions of TensorFlow.
Conclusion
The vulnerability in TensorFlow's Grappler component can result in a denial of service attack. Users are advised to update their TensorFlow installations to the patched versions or apply the provided patches. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for tensorflow →
FAQ
TensorFlow is an open-source machine learning framework developed by Google. It provides tools and resources for building and deploying machine learning models.
The vulnerability can lead to a denial of service attack by triggering a CHECK-failure in the Grappler component of TensorFlow.
The CVSS score of this vulnerability is 5.5, indicating a moderate impact.
To fix this vulnerability, update your TensorFlow installation to version 2.8.0 or apply the respective patches for your installed version.
No specific workaround is provided for this vulnerability. It is recommended to update to the patched versions of TensorFlow.
References
Related vulnerabilities
Recent vulnerabilities recorded for tensorflow.