CVE-2022-23569: TensorFlow - CHECK-fails when building invalid tensor shapes
Summary
CVE-2022-23569: CHECK-fails when building invalid tensor shapes in Tensorflow. Affects tensorflow across 3 version ranges.
< 2.5.3
>= 2.6.0, < 2.6.3
>= 2.7.0, < 2.7.1
Fixed in 2.5.3, 2.6.3 or 2.7.1, depending on the release line you run. How to fix ↓
Also tracked for
- tensorflow · Bitnami
- tensorflow-gpu · PyPI
- tensorflow-cpu · 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 that provides a comprehensive ecosystem of tools, libraries, and community resources for developing and deploying machine learning models. It is widely used in various domains, including research, industry, and academia. TensorFlow allows users to build and train neural networks by defining computational graphs and executing them efficiently on CPUs or GPUs. However, a vulnerability has been discovered in TensorFlow that can lead to denial of service attacks when building invalid tensor shapes.
Vulnerability Detail
The vulnerability in TensorFlow arises from multiple operations that can trigger assertion failures or CHECK-fails. These failures can be exploited by an attacker to cause a denial of service, disrupting the normal functioning of TensorFlow. The impact of this vulnerability is similar to a previously reported issue (CVE-2021-41197). The vulnerability has been assigned a CVSS score of 6.5, indicating a moderate severity level. The issue has been patched in multiple GitHub commits, and the fix will be included in TensorFlow 2.8.0. Additionally, the fix has been backported to TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, which are still within the supported range.
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 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==2.5.3" -
>= 2.6.0, < 2.6.32.6.3pip install --upgrade "tensorflow==2.6.3" -
>= 2.7.0, < 2.7.12.7.1pip install --upgrade "tensorflow==2.7.1"
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. The recommended solution is to apply the available patches or update to the fixed versions of TensorFlow.
Conclusion
The vulnerability in TensorFlow that allows CHECK-fails when building invalid tensor shapes has been addressed in the latest versions of the framework. Users are advised to update their TensorFlow installations to the fixed versions or apply the available patches. For further support and assistance with vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for tensorflow →
FAQ
TensorFlow is an open-source machine learning framework used for building and training neural networks.
The vulnerability can be exploited to cause denial of service attacks in TensorFlow.
Yes, the vulnerability has been patched in TensorFlow versions 2.8.0, 2.7.1, 2.6.3, and 2.5.3.
You can update TensorFlow by using the package manager or manually downloading and installing the updated version.
Yes, the vulnerability has been assigned a CVSS score of 6.5.
References
Related vulnerabilities
Recent vulnerabilities recorded for tensorflow.