CVE-2021-29596
Python vulnerability analysis and mitigation

Overview

TensorFlow is an end-to-end open source platform for machine learning. The implementation of the EmbeddingLookup TFLite operator was found to be vulnerable to a division by zero error in versions prior to 2.5.0. The vulnerability was discovered and disclosed on May 13, 2021, affecting TensorFlow versions before 2.5.0 (TF Advisory).

Technical details

The vulnerability exists in the implementation of the EmbeddingLookup TFLite operator where a division by zero error can occur. The issue arises when calculating row_bytes using the formula value->bytes / row_size, where row_size is obtained from the first dimension of the value input. If an attacker crafts a model where this first dimension is 0, it leads to a division by zero error (TF Commit). The vulnerability has been assigned a CVSS score of 4.6, indicating medium severity (CISA Bulletin).

Impact

The vulnerability could allow an attacker to cause a division by zero error by crafting a model with specific input parameters. This could potentially lead to application crashes or denial of service conditions in systems using the affected TensorFlow versions (TF Advisory).

Exploitability

The vulnerability can be exploited by crafting a model where the first dimension of the 'value' input is 0. This would trigger the division by zero error in the EmbeddingLookup operator implementation (TF Advisory).

Mitigation and workarounds

The vulnerability has been patched in TensorFlow 2.5.0. The fix has also been backported to TensorFlow versions 2.4.2, 2.3.3, 2.2.3, and 2.1.4. Users are advised to upgrade to these patched versions to mitigate the vulnerability (TF Advisory).

Community reactions

The vulnerability was reported by members of the Aivul Team from Qihoo 360, demonstrating ongoing security research in the machine learning framework ecosystem (TF 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-61539CRITICAL10
  • Python logoPython
  • xinference
NoYesAug 21, 2026
CVE-2026-49360HIGH7.8
  • Python logoPython
  • recce
NoYesAug 21, 2026
CVE-2026-68508HIGH7.8
  • Python logoPython
  • hydra-core
NoYesAug 21, 2026
CVE-2026-54457HIGH7.7
  • Python logoPython
  • tensorzero
NoYesAug 21, 2026
CVE-2026-43980MEDIUM6.3
  • Python logoPython
  • malla
NoNoAug 21, 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