CVE-2022-36002: TensorFlow CHECK Fail in Unbatch Leading to Denial of Service

tensorflow Updated 18 Jul 2026

Summary

13/07/2026
Yes i
Moderate
5.9

CVE-2022-36002: TensorFlow vulnerable to CHECK fail in Unbatch. Affects tensorflow 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-36002 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 Penetration testing for web, API and mobile 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 that provides a comprehensive ecosystem for building and deploying machine learning models. It is widely used for its flexibility and scalability, enabling developers to create complex neural networks and perform various data processing tasks. However, TensorFlow is susceptible to certain vulnerabilities that can impact its stability and security, such as the CHECK fail in the Unbatch operation.

Vulnerability Detail

The vulnerability arises when the Unbatch operation in TensorFlow receives a nonscalar input for the 'id' parameter. This can lead to a CHECK fail, which may cause the application to crash or become unresponsive, effectively resulting in a denial of service attack. The issue is particularly concerning as it can be exploited by sending crafted inputs, potentially affecting the availability of services relying on 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.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"
  • >= 2.9.0, < 2.9.1 2.9.1
    pip install --upgrade "tensorflow==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

Currently, there are no specific workarounds provided for this vulnerability. It is recommended to update to the patched version as soon as possible to mitigate the risk.

Conclusion

In summary, CVE-2022-36002 is a significant vulnerability in TensorFlow that can lead to denial of service due to a CHECK fail in the Unbatch operation. Users are strongly advised to update to the patched versions to ensure the security and stability of their applications.

See every vulnerability recorded for tensorflow →

Share this vulnerability

FAQ

CVE-2022-36002 is a vulnerability in TensorFlow that causes a CHECK fail in the Unbatch operation when it receives nonscalar input, leading to potential denial of service.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

The main consequence is a denial of service attack, which can cause applications using TensorFlow to crash or become unresponsive.

TensorFlow versions prior to 2.7.2, 2.8.1, and 2.9.1 are affected by this vulnerability.

You can update TensorFlow by running the command: pip install --upgrade tensorflow in your terminal.

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.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"
  • >= 2.9.0, < 2.9.1 2.9.1
    pip install --upgrade "tensorflow==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