CVE-2022-23565: CHECK-failures in Tensorflow

tensorflow Updated 02 Oct 2025

Summary

09/02/2022
Yes i
High
6.5

CVE-2022-23565: CHECK-failures 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-23565 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Tensorflow is an open-source machine learning framework widely used for building and deploying machine learning models. It provides a comprehensive ecosystem of tools, libraries, and resources for developing and training various types of neural networks. Tensorflow is available for multiple programming languages, including Python, and supports both CPU and GPU computations. However, a vulnerability has been discovered in Tensorflow that can lead to denial of service attacks.

Vulnerability Detail

The vulnerability (CVE-2022-23565) in Tensorflow arises from a failure in the CHECK mechanism, which is used for assertion checks in the framework. By manipulating a SavedModel on disk, an attacker can duplicate AttrDefs of certain operations, triggering assertion failures and causing denial of service. This vulnerability can be exploited by an attacker with write access to the SavedModel files. The impact of this vulnerability is a potential disruption of service availability.

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.5.3 2.5.3
    pip install --upgrade "tensorflow==2.5.3"
  • >= 2.6.0, < 2.6.3 2.6.3
    pip install --upgrade "tensorflow==2.6.3"
  • >= 2.7.0, < 2.7.1 2.7.1
    pip install --upgrade "tensorflow==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 specific workaround provided for this vulnerability. It is recommended to follow the steps mentioned in the 'how_to_fix' section to apply the necessary patches or update to the latest version of Tensorflow.

Conclusion

The vulnerability (CVE-2022-23565) in Tensorflow can lead to denial of service attacks by exploiting a failure in the CHECK mechanism. It is crucial to update to the latest version of Tensorflow or apply the provided patch to mitigate the issue. Keeping your machine learning applications secure and up to date is essential. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for tensorflow →

Share this vulnerability

FAQ

Tensorflow is an open-source machine learning framework used for building and deploying machine learning models.

The vulnerability can lead to denial of service attacks by causing assertion failures and disrupting service availability.

You can fix this vulnerability by updating to the latest version of Tensorflow or applying the provided patch.

No, this vulnerability requires write access to the SavedModel files, so it cannot be exploited remotely.

No specific workaround is provided for this vulnerability. It is recommended to update or patch Tensorflow.

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.5.3 2.5.3
    pip install --upgrade "tensorflow==2.5.3"
  • >= 2.6.0, < 2.6.3 2.6.3
    pip install --upgrade "tensorflow==2.6.3"
  • >= 2.7.0, < 2.7.1 2.7.1
    pip install --upgrade "tensorflow==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