Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2021-29598
Python vulnerability analysis and mitigation

Overview

TensorFlow is an end-to-end open source platform for machine learning. The vulnerability (CVE-2021-29598) was identified in the implementation of the SVDF TFLite operator, which was found to be susceptible to a division by zero error. The issue was discovered by members of the Aivul Team from Qihoo 360 and was disclosed in May 2021 (TF Advisory).

Technical details

The vulnerability exists in the SVDF TFLite operator implementation where a division operation is performed using the params->rank value without proper validation. The vulnerable code segment allows an attacker to craft a model where params->rank would be set to 0, leading to a division by zero error when executing num_filters % rank operation (TF Commit).

Impact

When successfully exploited, this vulnerability could lead to a denial of service condition in applications using the affected TensorFlow versions. The severity of this vulnerability was rated as Low according to the official assessment (TF Advisory).

Exploitability

An attacker can exploit this vulnerability by crafting a specific TensorFlow Lite model where the params->rank parameter is set to zero. This would trigger the division by zero error in the SVDF operator implementation (TF Advisory).

Mitigation and workarounds

The vulnerability was patched in TensorFlow 2.5.0 and backported to versions 2.4.2, 2.3.3, 2.2.3, and 2.1.4. The fix involves adding a validation check to ensure that the rank parameter is not zero before performing the division operation (TF Advisory).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Arch Linux

Fixed

rolling

tensorflow: 2.5.0-1

Fixed

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-66455CRITICAL9.8
  • Python logoPython
  • lmdeploy
NoYesSep 18, 2026
CVE-2026-63374CRITICAL9.3
  • Python logoPython
  • airflow-core-2
NoYesSep 18, 2026
CVE-2026-59163CRITICAL9.1
  • Python logoPython
  • mnemosyne-memory
NoYesSep 18, 2026
CVE-2026-33625HIGH8.8
  • Python logoPython
  • lmdeploy
NoYesSep 18, 2026
CVE-2026-64847MEDIUM6.8
  • Python logoPython
  • airflow-3
NoYesSep 18, 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