CVE-2022-21737: Denial of Service in tensorflow-gpu

tensorflow-gpu Updated 02 Oct 2025

Summary

03/02/2022
Yes i
Unrated
Not published

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

< 2.5.3 >= 2.6.0, < 2.6.3 < 7019ce4f68925fd01cdafde26f8d8c938f47e6f9

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-21737 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 widely used for developing and deploying machine learning models. It provides a comprehensive set of tools and libraries for building and training neural networks. The tensorflow-gpu package is a variant of TensorFlow that utilizes GPU acceleration for faster computation. It is commonly used in scenarios where large-scale data processing and complex model training are required.

Vulnerability Detail

The vulnerability identified as CVE-2022-21737 affects the tensorflow-gpu package. It arises from a flaw in the implementation of the *Bincount operations, which are used for counting occurrences of values in an input tensor. Malicious users can exploit this vulnerability by providing specific arguments that trigger a CHECK-fail condition. Some of these conditions are not caught during shape inference, while others are not detected during kernel implementation. Consequently, when the output tensors are allocated, CHECK failures occur, leading to a denial of service. The impact of this vulnerability can result in the disruption of machine learning processes and the unavailability of TensorFlow functionality.

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 specific workaround mentioned for this vulnerability. Users are recommended to follow the fix provided by the TensorFlow development team and upgrade to the patched versions.

Conclusion

The vulnerability identified as CVE-2022-21737 in the tensorflow-gpu package can lead to a denial of service. Users are strongly recommended to upgrade their tensorflow-gpu package to one of the fixed versions mentioned to mitigate the vulnerability. For further support on vulnerability remediation, please 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. It provides a wide range of tools and libraries for developing machine learning models.

The tensorflow-gpu package is a variant of TensorFlow that utilizes GPU acceleration for faster computation. It is commonly used in scenarios where large-scale data processing and complex model training are required.

The vulnerability can result in a denial of service, causing disruption to machine learning processes and the unavailability of TensorFlow functionality.

To fix this vulnerability, users should upgrade their tensorflow-gpu package to one of the fixed versions: TensorFlow 2.8.0, TensorFlow 2.7.1, TensorFlow 2.6.3, or TensorFlow 2.5.3.

No specific workaround has been mentioned for this vulnerability. Users are advised to follow the fix provided by the TensorFlow development team and upgrade to the patched versions.

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