CVE-2021-29599
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 implementation of the Split TFLite operator. The vulnerability (CVE-2021-29599) was discovered in May 2021 and affects multiple versions of TensorFlow before 2.5.0. The vulnerability allows an attacker to trigger a division by zero error by crafting a model where the num_splits parameter would be set to 0 (TF Advisory).

Technical details

The vulnerability exists in the Split TFLite operator implementation where a division operation is performed without validating that the divisor (num_splits) is non-zero. The vulnerable code is located in the split.cc file, specifically in the division operation where slice_size = input_size / num_splits. The vulnerability received a CVSS v3.1 base score of 7.8 (HIGH) from NVD, while GitHub assessed it with a base score of 2.5 (LOW) (NVD).

Impact

If successfully exploited, this vulnerability could lead to a division by zero error, potentially causing program crashes or denial of service conditions. The vulnerability affects multiple versions of TensorFlow, including versions prior to 2.1.4, 2.2.3, 2.3.3, 2.4.2, and 2.5.0 (NVD).

Exploitability

An attacker can exploit this vulnerability by crafting a specific model where the num_splits parameter is set to 0. The vulnerability was reported by members of the Aivul Team from Qihoo 360 (TF Advisory).

Mitigation and workarounds

The vulnerability has been patched in TensorFlow 2.5.0. The fix includes adding a validation check to ensure that num_splits is not zero before performing the division operation. The patch 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 (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-84366HIGH7.4
  • Python logoPython
  • scrapy
NoYesSep 01, 2026
CVE-2026-53720MEDIUM5.1
  • Python logoPython
  • pymonocypher
NoYesSep 03, 2026
CVE-2026-84311MEDIUM4.8
  • Python logoPython
  • pypdf
NoYesSep 01, 2026
CVE-2026-84310MEDIUM4.8
  • Python logoPython
  • pypdf
NoYesSep 01, 2026
GHSA-wwv5-g3v4-889xLOW2.3
  • Python logoPython
  • tornado
NoYesSep 01, 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