CVE-2022-23571: Denial of Service Vulnerability in TensorFlow

tensorflow-gpu Updated 02 Oct 2025

Summary

04/02/2022
Yes i
Unrated
Not published

CVE-2022-23571: Tensorflow is an Open Source Machine Learning Framework. Affects tensorflow-gpu across 3 version ranges.

< 2.5.3 >= 2.6.0, < 2.6.3 < 5b491cd5e41ad63735161cec9c2a568172c8b6a3

Fixed in 2.5.3 or 2.6.3, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2022-23571 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 framework widely used for developing and deploying machine learning models. It provides a comprehensive set of tools and libraries for building and training neural networks. TensorFlow supports various platforms and is known for its scalability and performance. However, a vulnerability has been discovered in TensorFlow that can lead to denial of service attacks.

Vulnerability Detail

The vulnerability in TensorFlow arises when decoding a tensor from protobuf. In certain cases, a CHECK assertion can be invalidated based on user-controlled arguments. This can occur when the tensors have an invalid dtype and 0 elements or an invalid shape. Exploiting this vulnerability, an attacker can cause denial of service in TensorFlow processes. The impact of this vulnerability can be severe, as it can disrupt the functioning of TensorFlow-based applications and services.

How To Fix

Latest published version: 2.12.0 as of 22 Oct 2026

pip install --upgrade "tensorflow-gpu==2.12.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.3 2.5.3
    pip install --upgrade "tensorflow-gpu==2.5.3"
  • >= 2.6.0, < 2.6.3 2.6.3
    pip install --upgrade "tensorflow-gpu==2.6.3"

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 known workaround for this vulnerability. It is essential to apply the provided fix or update to the patched version of TensorFlow as soon as possible.

Conclusion

The vulnerability in TensorFlow can result in denial of service attacks, impacting the availability of TensorFlow-based applications and services. It is crucial to update to the patched version of TensorFlow or apply the provided fix to mitigate this vulnerability. For further support and assistance in vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for tensorflow-gpu →

Share this vulnerability

FAQ

TensorFlow is an open-source machine learning framework used for building and training neural networks.

This vulnerability can lead to denial of service attacks in TensorFlow processes, potentially disrupting the functioning of TensorFlow-based applications and services.

The vulnerability affects TensorFlow versions 2.5.3, 2.6.3, and 2.7.1. The fix will be included in TensorFlow 2.8.0.

No, there is no known workaround for this vulnerability. It is crucial to update to the patched version of TensorFlow.

For more information about this vulnerability, you can refer to the official TensorFlow advisory and the provided source link.

Related vulnerabilities

Recent vulnerabilities recorded for tensorflow-gpu.

How To Fix

Latest published version: 2.12.0 as of 22 Oct 2026

pip install --upgrade "tensorflow-gpu==2.12.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.3 2.5.3
    pip install --upgrade "tensorflow-gpu==2.5.3"
  • >= 2.6.0, < 2.6.3 2.6.3
    pip install --upgrade "tensorflow-gpu==2.6.3"

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