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

tensorflow Updated 02 Oct 2025

Summary

06/03/2024
Yes i
Medium
Not published

CVE-2022-23579: CHECK-failures during Grappler's SafeToRemoveIdentity in Tensorflow. Affects tensorflow across 3 version ranges.

< 2.5.3 >= 2.6.0, < 2.6.3 >= 2.7.0, < 2.7.1

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

Also tracked for

The same CVE-2022-23579 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

TensorFlow is an open-source machine learning framework developed by Google. It provides a comprehensive ecosystem of tools, libraries, and resources for building and deploying machine learning models. TensorFlow is widely used in various domains, including research, industry, and academia. This vulnerability affects versions 2.5.2 to 2.6.2 and 2.7.0 of TensorFlow.

Vulnerability Detail

The Grappler optimizer in TensorFlow is susceptible to a denial of service vulnerability. By manipulating a SavedModel, an attacker can trigger CHECK failures in the SafeToRemoveIdentity function of the optimizer. This can lead to a denial of service condition, causing the affected TensorFlow application to become unresponsive or crash. The vulnerability has been assigned CVE-2022-23579 and has a CVSSv3 severity score of 6.5 (Medium).

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 2.5.3 2.5.3
  • >= 2.6.0, < 2.6.3 2.6.3
  • >= 2.7.0, < 2.7.1 2.7.1

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 available for this vulnerability at the moment.

Conclusion

In conclusion, TensorFlow versions 2.5.2 to 2.6.2 and 2.7.0 are vulnerable to a denial of service issue in the Grappler optimizer. It is crucial to update to the latest patched version or upgrade to TensorFlow 2.8.0 when it becomes available. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for tensorflow →

Share this vulnerability

FAQ

TensorFlow is an open-source machine learning framework developed by Google. It provides a comprehensive ecosystem of tools, libraries, and resources for building and deploying machine learning models.

This vulnerability can lead to a denial of service condition in TensorFlow applications, causing them to become unresponsive or crash.

Versions 2.5.2 to 2.6.2 and 2.7.0 of TensorFlow are affected by this vulnerability.

To fix this vulnerability, it is recommended to update TensorFlow to version 2.8.0 when it becomes available. Alternatively, you can upgrade to the latest patched version within your supported range.

There is currently no known workaround for this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for tensorflow.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 2.5.3 2.5.3
  • >= 2.6.0, < 2.6.3 2.6.3
  • >= 2.7.0, < 2.7.1 2.7.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