CVE-2021-29588
Python vulnerability analysis and mitigation

Overview

TensorFlow, an end-to-end open source platform for machine learning, was found to contain a vulnerability in the optimized implementation of the TransposeConv TFLite operator. The vulnerability (CVE-2021-29588) was discovered and reported by members of the Aivul Team from Qihoo 360, affecting TensorFlow versions prior to 2.5.0 (GitHub Advisory).

Technical details

The vulnerability is a division by zero error in the optimized implementation of the TransposeConv TFLite operator. The issue occurs in the calculation of height_col and width_col values where stride_h and stride_w are used as divisors without proper validation. The vulnerable code performs calculations: height_col = (height + pad_t + pad_b - filter_h) / stride_h + 1 and width_col = (width + pad_l + pad_r - filter_w) / stride_w + 1 (GitHub Advisory).

Impact

When exploited, this vulnerability could cause a division by zero error, potentially leading to program crashes. The issue affects multiple versions of TensorFlow, including versions prior to 2.5.0, and specifically impacts versions 2.4.2, 2.3.3, 2.2.3, and 2.1.4 that were still in the supported range (GitHub Advisory).

Exploitability

An attacker can exploit this vulnerability by crafting a model where the stride_h and stride_w values are set to 0, triggering the division by zero error in the implementation (GitHub Advisory).

Mitigation and workarounds

The vulnerability was patched in GitHub commit 801c1c6be5324219689c98e1bd3e0ca365ee834d and included in TensorFlow 2.5.0. The fix was also backported to TensorFlow versions 2.4.2, 2.3.3, 2.2.3, and 2.1.4. The patch implements validation checks to ensure that params->stride_height and params->stride_width are greater than 0 before performing the division (GitHub Commit).

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