CVE-2022-23564: Denial of Service Vulnerability in TensorFlow
Summary
CVE-2022-23564: Tensorflow is an Open Source Machine Learning Framework. Affects tensorflow-cpu across 3 version ranges.
< 2.5.3
>= 2.6.0, < 2.6.3
< 14fea662350e7c26eb5fe1be2ac31704e5682ee6
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-gpu · PyPI
The same CVE-2022-23564 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 is known for its scalability, flexibility, and extensive community support. 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 resource handle tensor from protobuf. In certain cases, a CHECK assertion can be invalidated based on user-controlled arguments. This can be exploited by attackers to cause denial of service in TensorFlow processes. The impact of this vulnerability can range from disrupting machine learning workflows to potentially crashing TensorFlow processes, leading to service unavailability. The vulnerability has been assigned CVE-2022-23564.
How To Fix
Latest published version: 2.21.0 as of 22 Oct 2026
pip install --upgrade "tensorflow-cpu==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-cpu==2.5.3" -
>= 2.6.0, < 2.6.32.6.3pip install --upgrade "tensorflow-cpu==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 specific workaround provided for this vulnerability. It is advised to apply the available patches or update to the latest version of TensorFlow as soon as they are released.
Conclusion
The vulnerability in TensorFlow can lead to denial of service attacks and service unavailability. It is crucial to update to the latest patched version of TensorFlow or apply the available patches to mitigate the vulnerability. For further support on vulnerability remediation, you can contact DevNack.com.
See every vulnerability recorded for tensorflow-cpu →
FAQ
TensorFlow is an open-source machine learning framework used for building and training neural networks.
The vulnerability can lead to denial of service attacks, potentially disrupting machine learning workflows and causing service unavailability.
The vulnerability affects TensorFlow versions 2.5.3, 2.6.3, 2.7.1, and prior versions.
To fix this vulnerability, update to the latest patched version of TensorFlow (2.8.0 or later) or apply the available patches for affected versions.
No specific workaround is provided. It is recommended to update to the latest patched version of TensorFlow.
References
Related vulnerabilities
Recent vulnerabilities recorded for tensorflow-cpu.