CVE-2021-41224
Python vulnerability analysis and mitigation

Overview

TensorFlow, an open source platform for machine learning, was found to contain a vulnerability (CVE-2021-41224) in the implementation of SparseFillEmptyRows that could trigger a heap out-of-bounds access. The vulnerability was discovered when the size of indices does not match the size of values. This issue affects versions prior to 2.7.0, with patches released in versions 2.4.4, 2.5.2, and 2.6.1 (GitHub Advisory).

Technical details

The vulnerability occurs in the SparseFillEmptyRows operation when there is a mismatch between the size of the indices parameter and the values parameter. This can lead to a heap buffer overflow condition. The issue was assigned a CVSS v3.1 base score of 7.1 HIGH with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H. The vulnerability is classified as CWE-125 (Out-of-bounds Read) (NVD).

Impact

When successfully exploited, this vulnerability allows attackers to access heap memory outside of user control, which could lead to a system crash or potential remote code execution. The vulnerability affects the confidentiality and availability of the system, with high impact ratings for both aspects (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in TensorFlow version 2.7.0. The fix was also backported to versions 2.6.1, 2.5.2, and 2.4.4. Users are advised to upgrade to these patched versions. The fix involves adding validation to ensure that the length of values matches the first dimension of indices (GitHub Commit).

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
  • pypdf2
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