CVE-2022-23571: Denial of Service Vulnerability in TensorFlow
Summary
CVE-2022-23571: Tensorflow is an Open Source Machine Learning Framework. Affects tensorflow-gpu across 3 version ranges.
< 2.5.3
>= 2.6.0, < 2.6.3
< 5b491cd5e41ad63735161cec9c2a568172c8b6a3
Fixed in 2.5.3 or 2.6.3, depending on the release line you run. How to fix ↓
Also tracked for
- tensorflow · PyPI
- tensorflow · Bitnami
- tensorflow · PyPI
- tensorflow-cpu · PyPI
The same CVE-2022-23571 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
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 widely used for developing and deploying machine learning models. It provides a comprehensive set of tools and libraries for building and training neural networks. TensorFlow supports various platforms and is known for its scalability and performance. However, a vulnerability has been discovered in TensorFlow that can lead to denial of service attacks.
Vulnerability Detail
The vulnerability in TensorFlow arises when decoding a tensor from protobuf. In certain cases, a CHECK assertion can be invalidated based on user-controlled arguments. This can occur when the tensors have an invalid dtype and 0 elements or an invalid shape. Exploiting this vulnerability, an attacker can cause denial of service in TensorFlow processes. The impact of this vulnerability can be severe, as it can disrupt the functioning of TensorFlow-based applications and services.
How To Fix
Latest published version: 2.12.0 as of 22 Oct 2026
pip install --upgrade "tensorflow-gpu==2.12.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-gpu==2.5.3" -
>= 2.6.0, < 2.6.32.6.3pip install --upgrade "tensorflow-gpu==2.6.3"
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 known workaround for this vulnerability. It is essential to apply the provided fix or update to the patched version of TensorFlow as soon as possible.
Conclusion
The vulnerability in TensorFlow can result in denial of service attacks, impacting the availability of TensorFlow-based applications and services. It is crucial to update to the patched version of TensorFlow or apply the provided fix to mitigate this vulnerability. For further support and assistance in vulnerability remediation, you can contact DevNack.com.
See every vulnerability recorded for tensorflow-gpu →
FAQ
TensorFlow is an open-source machine learning framework used for building and training neural networks.
This vulnerability can lead to denial of service attacks in TensorFlow processes, potentially disrupting the functioning of TensorFlow-based applications and services.
The vulnerability affects TensorFlow versions 2.5.3, 2.6.3, and 2.7.1. The fix will be included in TensorFlow 2.8.0.
No, there is no known workaround for this vulnerability. It is crucial to update to the patched version of TensorFlow.
For more information about this vulnerability, you can refer to the official TensorFlow advisory and the provided source link.
References
Related vulnerabilities
Recent vulnerabilities recorded for tensorflow-gpu.