CVE-2022-29193: TensorFlow Denial of Service via TensorSummaryV2 Input Validation Flaw

tensorflow Updated 18 Jul 2026

Summary

09/07/2026
Yes i
Moderate
5.5

CVE-2022-29193: Missing validation causes TensorSummaryV2 to crash. Affects tensorflow across 3 version ranges.

< 2.6.4 >= 2.7.0, < 2.7.2 >= 2.8.0, < 2.8.1

Fixed in 2.6.4, 2.7.2 or 2.8.1, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2022-29193 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 that provides a comprehensive ecosystem for building and deploying machine learning models. It is widely used for various applications, including deep learning and neural networks. However, TensorFlow has a vulnerability in the TensorSummaryV2 operation, which can lead to a denial of service due to insufficient input validation.

Vulnerability Detail

The vulnerability arises from the implementation of the tf.raw_ops.TensorSummaryV2 function, which fails to fully validate its input arguments. Specifically, it assumes that the 'axis' parameter is a scalar without performing any checks. This oversight can lead to a CHECK-failure, allowing an attacker to exploit the function and trigger a denial of service attack. The vulnerability can be exploited by passing malformed input, causing the application to crash.

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.6.4 2.6.4
    pip install --upgrade "tensorflow==2.6.4"
  • >= 2.7.0, < 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"

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, avoid using the TensorSummaryV2 operation with unvalidated input. Ensure that the inputs passed to this function are properly validated before calling it. For example, you can check if the 'axis' parameter is a scalar before invoking the function.

Conclusion

The CVE-2022-29193 vulnerability in TensorFlow poses a risk of denial of service due to inadequate input validation in the TensorSummaryV2 operation. Users are advised to update to the latest patched versions to mitigate this risk and ensure the stability of their applications.

See every vulnerability recorded for tensorflow →

Share this vulnerability

FAQ

CVE-2022-29193 is a vulnerability in TensorFlow that allows for a denial of service due to insufficient input validation in the TensorSummaryV2 operation.

An attacker can exploit this vulnerability by passing malformed input to the TensorSummaryV2 function, causing the application to crash.

The vulnerability affects TensorFlow versions prior to 2.6.4, 2.7.2, and 2.8.1.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without requiring signup.

The CVSS score of this vulnerability is 5.5, indicating a moderate severity level.

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.6.4 2.6.4
    pip install --upgrade "tensorflow==2.6.4"
  • >= 2.7.0, < 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"

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