{"cve":"CVE-2022-41911","nvd":{"published":"2022-11-18T22:15:22.743","modified":"2026-06-17T05:04:02.847","status":"Modified","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-704"],"references":["https://github.com/tensorflow/tensorflow/blob/807cae8a807960fd7ac2313cde73a11fc15e7942/tensorflow/core/framework/tensor.cc#L1200-L1227","https://github.com/tensorflow/tensorflow/commit/1be743703279782a357adbf9b77dcb994fe8b508","https://github.com/tensorflow/tensorflow/security/advisories/GHSA-pf36-r9c6-h97j","https://github.com/tensorflow/tensorflow/blob/807cae8a807960fd7ac2313cde73a11fc15e7942/tensorflow/core/framework/tensor.cc#L1200-L1227","https://github.com/tensorflow/tensorflow/commit/1be743703279782a357adbf9b77dcb994fe8b508"],"products":["google:tensorflow"],"source":"nvd","synced_at":"2026-10-19T21:37:28.463369388+00:00"},"epss":{"cve":"CVE-2022-41911","score":0.00444,"percentile":0.38631,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-pf36-r9c6-h97j","url":"https://osv.dev/vulnerability/GHSA-pf36-r9c6-h97j","summary":"Invalid char to bool conversion when printing a tensor","modified":"2026-07-13T16:43:30.993776604Z","packages":[{"ecosystem":"PyPI","name":"tensorflow","purl":"pkg:pypi/tensorflow","ranges":["<2.8.4"],"fixed":["2.8.4"]},{"ecosystem":"PyPI","name":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","ranges":[">=2.9.0 <2.9.3"],"fixed":["2.9.3"]},{"ecosystem":"PyPI","name":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","ranges":[">=2.10.0 <2.10.1"],"fixed":["2.10.1"]},{"ecosystem":"PyPI","name":"tensorflow","purl":"pkg:pypi/tensorflow","ranges":[">=2.9.0 <2.9.3"],"fixed":["2.9.3"]},{"ecosystem":"PyPI","name":"tensorflow","purl":"pkg:pypi/tensorflow","ranges":[">=2.10.0 <2.10.1"],"fixed":["2.10.1"]},{"ecosystem":"PyPI","name":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","ranges":["<2.8.4"],"fixed":["2.8.4"]},{"ecosystem":"PyPI","name":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","ranges":["<2.8.4"],"fixed":["2.8.4"]},{"ecosystem":"PyPI","name":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","ranges":[">=2.9.0 <2.9.3"],"fixed":["2.9.3"]},{"ecosystem":"PyPI","name":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","ranges":[">=2.10.0 <2.10.1"],"fixed":["2.10.1"]}]},{"id":"PYSEC-2026-1954","url":"https://osv.dev/vulnerability/PYSEC-2026-1954","summary":"Invalid char to bool conversion when printing a tensor","modified":"2026-07-13T16:43:30.993776604Z","packages":[{"ecosystem":"PyPI","name":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","ranges":["<2.8.4",">=2.9.0 <2.9.3",">=2.10.0 <2.10.1"],"fixed":["2.8.4","2.9.3","2.10.1"]}]},{"id":"PYSEC-2026-3222","url":"https://osv.dev/vulnerability/PYSEC-2026-3222","summary":"Invalid char to bool conversion when printing a tensor","modified":"2026-07-13T16:43:30.993776604Z","packages":[{"ecosystem":"PyPI","name":"tensorflow","purl":"pkg:pypi/tensorflow","ranges":["<2.8.4",">=2.9.0 <2.9.3",">=2.10.0 <2.10.1"],"fixed":["2.8.4","2.9.3","2.10.1"]}]},{"id":"PYSEC-2026-939","url":"https://osv.dev/vulnerability/PYSEC-2026-939","summary":"Invalid char to bool conversion when printing a tensor","modified":"2026-07-13T16:43:30.993776604Z","packages":[{"ecosystem":"PyPI","name":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","ranges":["<2.8.4",">=2.9.0 <2.9.3",">=2.10.0 <2.10.1"],"fixed":["2.8.4","2.9.3","2.10.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}