CVE-2022-35969: TensorFlow Conv2DBackpropInput CHECK Fail Vulnerability

tensorflow-cpu Updated 18 Jul 2026

Summary

13/07/2026
Yes i
Medium
5.9

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

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

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

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

Share this vulnerability

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.

Related vulnerabilities

Recent vulnerabilities recorded for tensorflow-cpu.

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

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