CVE-2022-23590: TensorFlow Crash due to Erroneous StatusOr
Summary
CVE-2022-23590: Crash due to erroneous StatusOr in TensorFlow. Affects tensorflow versions < 2.7.1. Fixed in 2.7.1. How to fix ↓
Also tracked for
- tensorflow · Bitnami
- tensorflow-gpu · PyPI
- tensorflow-cpu · PyPI
The same CVE-2022-23590 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 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 TensorFlow that can lead to a crash in certain scenarios.
Vulnerability Detail
The vulnerability (CVE-2022-23590) in TensorFlow arises from an erroneous implementation of the StatusOr mechanism. Specifically, a GraphDef from a TensorFlow SavedModel can be manipulated to cause a TensorFlow process to crash. This occurs when encountering a StatusOr value that is an error and forcibly extracting the value from it. The vulnerable code snippet can be found in the TensorFlow source code.
The impact of this vulnerability is a denial-of-service (DoS) condition, where a maliciously crafted GraphDef can crash a TensorFlow process. This can disrupt the availability of TensorFlow-based applications and services. The vulnerability has a CVSS score of 5.9, indicating a moderate severity level.
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 version below is the minimum fixed release for this vulnerability.
If you need the minimum change
2.7.1
This is the first release that contains the fix.
pip install --upgrade "tensorflow==2.7.1"
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no specific workaround provided for this vulnerability. The recommended approach is to apply the available patch by updating TensorFlow to a patched version.
Conclusion
The vulnerability in TensorFlow (CVE-2022-23590) can result in a crash of TensorFlow processes, leading to a denial-of-service condition. Users are advised to update their TensorFlow installations to the patched versions (2.8.0 or 2.7.1) to mitigate the vulnerability. For further support and assistance in 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 (DoS) condition, causing TensorFlow processes to crash and potentially disrupting the availability of TensorFlow-based applications and services.
To fix this vulnerability, update your TensorFlow installation to version 2.8.0 or 2.7.1, which include the necessary patches.
No specific workaround is provided. It is recommended to update TensorFlow to a patched version.
The vulnerability has a CVSS score of 5.9, indicating a moderate severity level.
References
Related vulnerabilities
Recent vulnerabilities recorded for tensorflow.