CVE-2021-29586
Python vulnerability analysis and mitigation

Overview

TensorFlow is an end-to-end open source platform for machine learning. A vulnerability was discovered in the optimized pooling implementations in TensorFlow Lite (CVE-2021-29586), where the code fails to validate that stride arguments are non-zero before calling ComputePaddingHeightWidth. This vulnerability was disclosed on May 13, 2021, affecting TensorFlow versions prior to 2.5.0 (GitHub Advisory).

Technical details

The vulnerability exists in the optimized pooling implementations where the code does not check that the stride arguments (params->stride_{height,width}) are non-zero before calling ComputePaddingHeightWidth. This oversight allows specially crafted models to set stride values to zero, resulting in a division by zero error (MITRE CVE).

Impact

When exploited, this vulnerability can lead to a division by zero error, potentially causing application crashes and denial of service conditions. The severity of this vulnerability is rated as Low, primarily affecting the availability of systems running TensorFlow Lite implementations (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in multiple versions of TensorFlow. The fix was included in TensorFlow 2.5.0 and was backported to 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 (GitHub 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 (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-2025-65896CRITICAL9.8
  • PythonPython
  • asyncmy
NoNoDec 02, 2025
CVE-2025-66423HIGH7.1
  • PythonPython
  • tryton-server
NoYesNov 30, 2025
CVE-2025-66454MEDIUM6.5
  • PythonPython
  • arcade-mcp-server
NoYesDec 02, 2025
CVE-2025-66424MEDIUM6.5
  • PythonPython
  • trytond
NoYesNov 30, 2025
CVE-2025-65858LOW3.5
  • PythonPython
  • calibreweb
NoNoDec 02, 2025

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