CVE-2021-37660
Python vulnerability analysis and mitigation

Overview

TensorFlow, an end-to-end open source platform for machine learning, was found to contain a vulnerability (CVE-2021-37660) that allows attackers to trigger a floating point exception through inplace operations. The vulnerability was discovered in versions prior to 2.6.0 and disclosed on August 11, 2021. The affected versions include TensorFlow versions from 2.3.0 up to 2.6.0 (GitHub Advisory).

Technical details

The vulnerability stems from a logic error in the implementation of inplace operations. The code incorrectly uses the OR operator (||) instead of AND operator (&&) when checking if tensors are empty, which should skip processing if both 'x' and 'v' are empty. This implementation flaw can be exploited by calling inplace operations with specially crafted arguments that result in a division by zero. The vulnerability can be demonstrated using the following code: tf.raw_ops.InplaceSub(x=[],i=[-99,-1,-1],v=[1,1,1]) (GitHub Advisory).

Impact

When successfully exploited, this vulnerability allows an attacker to cause a floating point exception in the application, potentially leading to application crashes and denial of service conditions (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in multiple versions: TensorFlow 2.3.4, 2.4.3, 2.5.1, and 2.6.0. Users are recommended to upgrade to these patched versions. The fix involves correcting the logic operator in the implementation, as documented in commit e86605c0a336c088b638da02135ea6f9f6753618 (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

GHSA-5882-5rx9-xgxpCRITICAL10
  • PythonPython
  • crawl4ai
NoYesJan 16, 2026
GHSA-vx9w-5cx4-9796HIGH8.6
  • PythonPython
  • crawl4ai
NoYesJan 16, 2026
CVE-2026-23535HIGH8
  • PythonPython
  • wlc
NoYesJan 16, 2026
CVE-2026-23490HIGH7.5
  • PythonPython
  • pyasn1
NoYesJan 16, 2026
CVE-2026-23528MEDIUM5.3
  • PythonPython
  • distributed
NoYesJan 16, 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