Wiz Agents & Workflows are here

CVE-2021-41198
Python vulnerability analysis and mitigation

Overview

TensorFlow, an open source platform for machine learning, was found to have a vulnerability (CVE-2021-41198) where calling tf.tile with large input arguments could cause the TensorFlow process to crash. The vulnerability was discovered in versions prior to 2.7.0 and was patched in versions 2.4.4, 2.5.2, and 2.6.1. The issue was first reported via a GitHub issue and later disclosed on November 5, 2021 (GitHub Advisory).

Technical details

The vulnerability occurs when the number of elements in the output tensor exceeds the capacity of the int64_t type, leading to an overflow. This overflow is detected by a CHECK statement, which then causes the process to abort. The issue can be triggered by calling tf.tile with large multiplication factors, such as tf.keras.backend.tile(x=np.ones((1,1,1)), n=[100000000,100000000, 100000000]). The vulnerability has a CVSS v3.1 base score of 5.5 (Medium) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

When exploited, this vulnerability results in a crash of the TensorFlow process due to the CHECK-failure caused by the overflow. This can lead to denial of service conditions in applications utilizing the tf.tile functionality with large input parameters (GitHub Advisory).

Mitigation and workarounds

The issue was patched in GitHub commit 9294094df6fea79271778eb7e7ae1bad8b5ef98f and included in TensorFlow version 2.7.0. The fix was also backported to versions 2.6.1, 2.5.2, and 2.4.4. Users are advised to upgrade to these patched versions to mitigate the vulnerability (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-33992CRITICAL9.3
  • PythonPython
  • pyload-ng
NoNoMar 27, 2026
CVE-2026-33981HIGH8.3
  • PythonPython
  • changedetection.io
NoYesMar 27, 2026
CVE-2026-34172HIGH7.7
  • PythonPython
  • giskard-agents
NoYesMar 27, 2026
GHSA-7fqq-q52p-2jjgMEDIUM6.5
  • JavaScriptJavaScript
  • opencc
NoYesMar 29, 2026
CVE-2026-33936MEDIUM5.3
  • PythonPython
  • ecdsa
NoYesMar 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management