CVE-2021-41214
Python vulnerability analysis and mitigation

Overview

TensorFlow, an open source platform for machine learning, was found to contain a vulnerability (CVE-2021-41214) in the shape inference code for tf.ragged.cross function. The vulnerability was discovered and reported by members of the Aivul Team from Qihoo 360, and was patched in November 2021. The issue affected TensorFlow versions prior to 2.7.0, including versions 2.4.x, 2.5.x, and 2.6.x (GitHub Advisory).

Technical details

The vulnerability stems from undefined behavior in the shape inference code for tf.ragged.cross function, where a reference is bound to a nullptr. This can lead to a crash when the function is called with specific inputs. A proof of concept demonstrates the vulnerability can be triggered using a simple code snippet that calls tf.ragged.cross with a ragged constant and a string value (GitHub Advisory).

Impact

The impact of this vulnerability is relatively low. When exploited, it results in a crash of the application due to the null pointer dereference, potentially leading to a denial of service condition (GitHub Advisory).

Mitigation and workarounds

The issue has been patched in multiple versions: TensorFlow 2.7.0, 2.6.1, 2.5.2, and 2.4.4. Users are advised to upgrade to these patched versions. The fix was implemented in GitHub commit fa6b7782fbb14aa08d767bc799c531f5e1fb3bb8 (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-2026-22033HIGH8.6
  • PythonPython
  • label-studio
NoNoJan 12, 2026
CVE-2025-68472HIGH8.1
  • PythonPython
  • mindsdb
NoYesJan 12, 2026
CVE-2026-22251MEDIUM5.3
  • PythonPython
  • wlc
NoYesJan 12, 2026
CVE-2026-22691LOW2.7
  • PythonPython
  • pypdf
NoYesJan 10, 2026
CVE-2026-22250LOW2.5
  • PythonPython
  • wlc
NoYesJan 12, 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