CVE-2022-23586: Denial of Service in TensorFlow
Summary
CVE-2022-23586: Tensorflow is an Open Source Machine Learning Framework. Affects tensorflow-cpu across 4 version ranges.
< 2.5.3
>= 2.6.0, < 2.6.3
< 3d89911481ba6ebe8c88c1c0b595412121e6c645
< dcc21c7bc972b10b6fb95c2fb0f4ab5a59680ec2
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-23586 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 ecosystem of tools, libraries, and resources for building and training neural networks. TensorFlow is available on PyPI as the package 'tensorflow-cpu'.
Vulnerability Detail
A vulnerability has been identified in TensorFlow that allows a malicious user to cause a denial of service (DoS) attack. By manipulating a 'SavedModel', the attacker can falsify assertions in 'function.cc', leading to a crash of the Python interpreter. This vulnerability can be exploited remotely and may result in the disruption of TensorFlow-based applications and services. The issue has been assigned the CVE identifier CVE-2022-23586.
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
No specific workaround has been provided for this vulnerability. It is recommended to apply the available patches or update to the fixed versions of TensorFlow as mentioned in the 'how_to_fix' section.
Conclusion
A vulnerability has been identified in TensorFlow that allows for a denial of service attack. It is crucial to update to the fixed versions or apply the available patches to mitigate the risk. For further support and assistance in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for tensorflow-cpu →
FAQ
TensorFlow is an open-source machine learning framework used for developing and deploying machine learning models. It provides a wide range of tools and resources for building neural networks.
A denial of service attack is a malicious act that aims to disrupt the normal functioning of a computer system or network, making it unavailable to its intended users.
This vulnerability can be exploited remotely by a malicious user who can manipulate a 'SavedModel' in TensorFlow, causing falsified assertions and crashing the Python interpreter.
The exploitation of this vulnerability can result in a denial of service, leading to the disruption of TensorFlow-based applications and services. This can impact the availability and reliability of machine learning systems.
No, only TensorFlow versions 2.5.3, 2.6.3, 2.7.1, and earlier versions within the supported range are affected. It is recommended to upgrade to the fixed versions or apply the available patches.
References
Related vulnerabilities
Recent vulnerabilities recorded for tensorflow-cpu.