7.5

CVE-2022-41911: Invalid char to bool conversion when printing a tensor in Tensorflow

Modified
AliasesGHSA-pf36-r9c6-h97jBIT-tensorflow-2022-41911PYSEC-2026-1954
Published 18-11-2022Last modified 23-04-2025

Vulnerability summary

CVE-2022-41911 is a high (CVSS 7.5) Incorrect Type Conversion or Cast vulnerability in google tensorflow. EPSS estimates a 0.58% chance of exploitation in the next 30 days, higher than 48.9% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 4.8, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.5/10
010
High · v3.1 (NVD)
EPSS score
0.58%
0%100%
Low · +0.13 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 18-11-2022
    PublishedVulnerability first disclosed.
  2. 23-04-2025
    Last modifiedVulnerability information updated.

Description

TensorFlow is an open source platform for machine learning. When printing a tensor, we get it's data as a `const char*` array (since that's the underlying storage) and then we typecast it to the element type. However, conversions from `char` to `bool` are undefined if the `char` is not `0` or `1`, so sanitizers/fuzzers will crash. The issue has been patched in GitHub commit `1be74370327`. The fix will be included in TensorFlow 2.11.0. We will also cherrypick this commit on TensorFlow 2.10.1, TensorFlow 2.9.3, and TensorFlow 2.8.4, as these are also affected and still in supported range.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.58%

Chance of exploitation in the next 30 days

Percentile

49%

Versus all other CVEs

30-day change

Increase +0.13 pp

From 0.44% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.

PyPI3 products
  • tensorflow< 2.8.4 | ≥ 2.9.0, < 2.9.3 | ≥ 2.10.0, < 2.10.1
  • tensorflow-cpu≥ 2.9.0, < 2.9.3 | < 2.8.4 | ≥ 2.10.0, < 2.10.1
  • tensorflow-gpu< 2.8.4 | ≥ 2.9.0, < 2.9.3 | ≥ 2.10.0, < 2.10.1
Google1 product
Tensorflow1 product
  • tensorflow≥ 2.10.0, < 2.10.1 | ≥ 2.9.0, < 2.9.3 | < 2.8.4

3 vendors · 5 products

References

8 links