CVE-2022-35969: TensorFlow Denial of Service Vulnerability in Conv2DBackpropInput

tensorflow Updated 18 Jul 2026

Summary

13/07/2026
Yes i
Moderate
5.9

CVE-2022-35969: TensorFlow vulnerable to CHECK fail in Conv2DBackpropInput. 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

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.

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

TensorFlow is an open-source machine learning library widely used for various applications, including deep learning and neural networks. It provides a flexible ecosystem for building and deploying machine learning models. However, a vulnerability has been identified in the Conv2DBackpropInput operation, which can lead to a denial of service if exploited.

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. An attacker can exploit this flaw by providing invalid input sizes, potentially leading to a denial of service. The vulnerability can be triggered with a specific input that causes the system to fail, impacting the availability of the service.

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.2 2.7.2
    pip install --upgrade "tensorflow==2.7.2"
  • >= 2.8.0, < 2.8.1 2.8.1
    pip install --upgrade "tensorflow==2.8.1"
  • >= 2.9.0, < 2.9.1 2.9.1
    pip 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

As a workaround, ensure that the input_sizes parameter passed to the Conv2DBackpropInput operation is always a 4-dimensional tensor. Here is an example of how to correctly define input_sizes:

import tensorflow as tf

strides = [1, 1, 1, 1] padding = 'SAME' use_cudnn_on_gpu = True explicit_paddings = [] data_format = 'NHWC' dilations = [1, 1, 1, 1] input_sizes = tf.constant([1, 64, 64, 2], shape=[4], dtype=tf.int32) # Correctly defined 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=data_format, dilations=dilations)

Conclusion

The CVE-2022-35969 vulnerability in TensorFlow's Conv2DBackpropInput operation poses a risk of denial of service. Users are advised to update to the latest patched versions of TensorFlow and ensure proper input validation to mitigate this risk.

See every vulnerability recorded for tensorflow →

Share this vulnerability

FAQ

CVE-2022-35969 is a vulnerability in TensorFlow's Conv2DBackpropInput operation that can lead to a denial of service if exploited.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which monitors open-source vulnerabilities without requiring signup.

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.

As a temporary workaround, ensure that the input_sizes parameter is always a 4-dimensional tensor when using Conv2DBackpropInput.

The CVSS score of this vulnerability is 5.9, indicating a moderate level of risk.

Related vulnerabilities

Recent vulnerabilities recorded for tensorflow.

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.2 2.7.2
    pip install --upgrade "tensorflow==2.7.2"
  • >= 2.8.0, < 2.8.1 2.8.1
    pip install --upgrade "tensorflow==2.8.1"
  • >= 2.9.0, < 2.9.1 2.9.1
    pip 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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback