CVE-2022-21729
Python vulnerability analysis and mitigation

Overview

CVE-2022-21729 affects TensorFlow, an Open Source Machine Learning Framework. The vulnerability was discovered in the implementation of UnravelIndex, which is susceptible to a division by zero error caused by an integer overflow bug. The issue affects multiple versions of TensorFlow including versions up to 2.5.2, versions 2.6.0 to 2.6.2, and version 2.7.0 (GitHub Advisory).

Technical details

The vulnerability stems from an integer overflow condition in the UnravelIndex implementation that can lead to a division by zero error. The issue can be triggered when processing large dimension values that exceed the maximum integer value. The vulnerability has been assigned a CVSS v3.1 Base Score of 6.5 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

When successfully exploited, this vulnerability can cause a division by zero error, potentially leading to application crashes or denial of service conditions. The vulnerability primarily affects the availability of the system, with no direct impact on confidentiality or integrity (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in multiple versions of TensorFlow. Users should upgrade to TensorFlow 2.8.0 or the following patched versions: TensorFlow 2.7.1, TensorFlow 2.6.3, or TensorFlow 2.5.3. The fix was implemented in GitHub commit 58b34c6c8250983948b5a781b426f6aa01fd47af (GitHub Advisory).

Community reactions

The vulnerability was reported by Yu Tian of Qihoo 360 AIVul Team, 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