CVE-2022-41911: TensorFlow GPU - Invalid Char to Bool Conversion When Printing a Tensor

tensorflow-gpu Updated 07 Jul 2026

Summary

07/07/2026
Yes i
Medium
4.8

CVE-2022-41911: Invalid char to bool conversion when printing a tensor. Affects tensorflow-gpu across 3 version ranges.

< 2.8.4 >= 2.9.0, < 2.9.3 >= 2.10.0, < 2.10.1

Fixed in 2.8.4, 2.9.3 or 2.10.1, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2022-41911 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 framework that provides a comprehensive ecosystem for building and deploying machine learning models. It supports various functionalities, including tensor operations, which are fundamental to its architecture. TensorFlow GPU is a variant that leverages GPU acceleration for enhanced performance. However, it is susceptible to vulnerabilities that can arise from improper data handling, such as the one described in this report.

Vulnerability Detail

The vulnerability arises from an invalid conversion of character data to boolean when printing a tensor. Specifically, when TensorFlow attempts to print tensor data, it retrieves the data as a 'const char*' array and then typecasts it to the expected element type. This conversion is undefined for characters that are not '0' or '1', leading to potential crashes when sanitizers or fuzzers are employed. The impact of this vulnerability can lead to application instability and security risks, particularly in environments where data integrity is critical.

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.8.4 2.8.4
    pip install --upgrade "tensorflow-gpu==2.8.4"
  • >= 2.9.0, < 2.9.3 2.9.3
    pip install --upgrade "tensorflow-gpu==2.9.3"
  • >= 2.10.0, < 2.10.1 2.10.1
    pip install --upgrade "tensorflow-gpu==2.10.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. The best course of action is to update to the patched versions mentioned above.

Conclusion

In summary, CVE-2022-41911 is a vulnerability in TensorFlow GPU that can lead to application crashes due to improper data handling when printing tensors. Users are encouraged to update to the patched versions to mitigate this risk and maintain application stability.

See every vulnerability recorded for tensorflow-gpu →

Share this vulnerability

FAQ

CVE-2022-41911 is a vulnerability in TensorFlow GPU that involves an invalid conversion from character data to boolean when printing tensors, which can lead to application crashes.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The fixed versions for this vulnerability are TensorFlow 2.8.4, 2.9.3, and 2.10.1.

While there are no specific workarounds, it is advisable to monitor your application for any unusual behavior until you can apply the necessary updates.

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

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.8.4 2.8.4
    pip install --upgrade "tensorflow-gpu==2.8.4"
  • >= 2.9.0, < 2.9.3 2.9.3
    pip install --upgrade "tensorflow-gpu==2.9.3"
  • >= 2.10.0, < 2.10.1 2.10.1
    pip install --upgrade "tensorflow-gpu==2.10.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