CVE-2022-35994: TensorFlow Denial of Service Vulnerability in CollectiveGather
Summary
CVE-2022-35994: TensorFlow vulnerable to CHECK fail in CollectiveGather. Affects tensorflow across 3 version ranges.
< 2.7.2
>= 2.8.0, < 2.8.1
>= 2.9.0, < 2.9.1
Fixed in 2.7.2, 2.8.1 or 2.9.1, depending on the release line you run. How to fix ↓
Also tracked for
- tensorflow-cpu · PyPI
- tensorflow-gpu · PyPI
- tensorflow · Bitnami
The same CVE-2022-35994 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 enables developers to build and train machine learning models. It is widely used for various applications, including deep learning, neural networks, and data analysis. The framework provides a robust set of tools and libraries for building complex models efficiently. However, TensorFlow has been found to have a vulnerability in the CollectiveGather operation, which can lead to denial of service attacks under specific conditions.
Vulnerability Detail
The vulnerability arises when the CollectiveGather operation receives a scalar input. This can trigger a CHECK failure, leading to a denial of service. An attacker can exploit this vulnerability by sending crafted input to the CollectiveGather function, causing the application to crash or become unresponsive. This issue is particularly concerning for applications that rely on TensorFlow for real-time processing, as it can disrupt services and impact user experience.
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.7.22.7.2pip install --upgrade "tensorflow==2.7.2" -
>= 2.8.0, < 2.8.12.8.1pip install --upgrade "tensorflow==2.8.1" -
>= 2.9.0, < 2.9.12.9.1pip install --upgrade "tensorflow==2.9.1"
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
Currently, there are no specific workarounds mentioned for this vulnerability. It is recommended to update to the patched version as soon as possible to mitigate the risk.
Conclusion
The CVE-2022-35994 vulnerability in TensorFlow's CollectiveGather operation poses a risk of denial of service attacks when scalar inputs are processed. It is crucial for users to update to the latest patched versions to ensure the security and stability of their applications.
See every vulnerability recorded for tensorflow →
FAQ
CVE-2022-35994 is a vulnerability in TensorFlow's CollectiveGather operation that can lead to denial of service when a scalar input is provided.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
The affected versions include TensorFlow 2.7.2, 2.8.0, 2.9.0, and earlier versions. The vulnerability is fixed in versions 2.10.0, 2.9.1, 2.8.1, and 2.7.2.
The CVSS score for this vulnerability is 5.9, indicating a moderate severity level.
You can report security issues by consulting TensorFlow's security guide available on their GitHub repository.
References
Related vulnerabilities
Recent vulnerabilities recorded for tensorflow.