CVE-2022-35969: TensorFlow Conv2DBackpropInput CHECK Fail Vulnerability
Summary
CVE-2022-35969: TensorFlow vulnerable to CHECK fail in Conv2DBackpropInput. Affects tensorflow-cpu 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 · PyPI
- tensorflow-gpu · PyPI
- tensorflow · Bitnami
- tensorflow · PyPI
The same CVE-2022-35969 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 library widely used for building and training deep learning models. It provides a flexible ecosystem of tools, libraries, and community resources that allows researchers and developers to create and deploy machine learning applications. The library includes various operations, including convolutional layers, which are essential for image processing tasks. However, a vulnerability has been identified in the Conv2DBackpropInput operation, which can lead to denial of service attacks if not addressed.
Vulnerability Detail
The vulnerability arises from the Conv2DBackpropInput implementation, which requires the input_sizes parameter to be a 4-dimensional tensor. If this requirement is not met, it results in a CHECK failure. This failure can be exploited by attackers to trigger a denial of service condition, causing the application to crash or become unresponsive. The vulnerability is particularly concerning as it can be easily triggered with minimal input, making it a potential target for malicious actors.
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.7.22.7.2pip install --upgrade "tensorflow-cpu==2.7.2" -
>= 2.8.0, < 2.8.12.8.1pip install --upgrade "tensorflow-cpu==2.8.1" -
>= 2.9.0, < 2.9.12.9.1pip install --upgrade "tensorflow-cpu==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
As a temporary workaround, ensure that the input_sizes parameter passed to the Conv2DBackpropInput operation is always a 4-dimensional tensor. For example, you can modify your code as follows:
import tensorflow as tf
strides = [1, 1, 1, 1] padding = 'SAME' use_cudnn_on_gpu = True explicit_paddings = [] dilations = [1, 1, 1, 1] input_sizes = tf.constant([1, 64, 64, 2], shape=[4], dtype=tf.int32) # Ensure 4D tensor filter = tf.constant(0.159749106, shape=[3, 3, 2, 2], dtype=tf.float32) out_backprop = tf.constant(0, shape=[], dtype=tf.float32) tf.raw_ops.Conv2DBackpropInput(input_sizes=input_sizes, filter=filter, out_backprop=out_backprop, strides=strides, padding=padding, use_cudnn_on_gpu=use_cudnn_on_gpu, explicit_paddings=explicit_paddings, data_format='NHWC', dilations=dilations)
Conclusion
In summary, CVE-2022-35969 is a significant vulnerability in TensorFlow that can lead to denial of service attacks. It is crucial for users to update to the patched versions to mitigate the risk. Additionally, using tools like Vulert can help monitor and alert for such vulnerabilities in real-time.
See every vulnerability recorded for tensorflow-cpu →
FAQ
CVE-2022-35969 is a vulnerability in TensorFlow's Conv2DBackpropInput operation that can lead to a denial of service due to a CHECK failure when input_sizes is not a 4-dimensional tensor.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
The affected versions include TensorFlow 2.7.0 to 2.9.0. The vulnerability has been patched in versions 2.7.2, 2.8.1, 2.9.1, and 2.10.0.
The CVSS score for this vulnerability is 5.9, indicating a moderate severity level.
You can update TensorFlow by running the command: pip install --upgrade tensorflow-cpu in your terminal or command prompt.
References
Related vulnerabilities
Recent vulnerabilities recorded for tensorflow-cpu.