CVE-2022-23569: Denial of Service Vulnerability in TensorFlow
Summary
CVE-2022-23569: Tensorflow is an Open Source Machine Learning Framework. Affects tensorflow-cpu across 2 version ranges.
< 2.5.3
>= 2.6.0, < 2.6.3
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-23569 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 and flexibility, making it a popular choice among researchers and developers. However, a vulnerability has been discovered in TensorFlow that can lead to a denial of service (DoS) attack.
Vulnerability Detail
The vulnerability in TensorFlow is related to multiple operations that can trigger a denial of service by causing assertion failures. This vulnerability is similar to a previously reported issue (TFSA-2021-198) and has similar fixes. The vulnerability allows an attacker to exploit the assertion failures and disrupt the normal functioning of TensorFlow, potentially leading to a complete system crash or unresponsiveness. The issue has been patched in multiple GitHub commits, and the fix will be included in TensorFlow 2.8.0. The fix will also be backported to TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, as these versions are still within the supported range.
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 →
Conclusion
The vulnerability in TensorFlow can lead to a denial of service attack, potentially causing system crashes or unresponsiveness. It is crucial to update your TensorFlow installation to the latest version or apply the patch to ensure the security and stability of your machine learning applications. For further support on vulnerability remediation, please 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.
A denial of service attack is an attempt to disrupt the normal functioning of a system or network, making it unavailable to its intended users.
The vulnerability can be exploited by triggering assertion failures in TensorFlow, which can lead to a denial of service attack.
The vulnerability affects TensorFlow versions 2.5.3, 2.6.0, and 2.6.3.
To protect your TensorFlow installation, it is recommended to update to the latest version (2.8.0) once it is released. Alternatively, you can apply the patch by cherrypicking the relevant commit from the TensorFlow GitHub repository.
References
Related vulnerabilities
Recent vulnerabilities recorded for tensorflow-cpu.