CVE-2021-37641
Python vulnerability analysis and mitigation

Overview

TensorFlow, an end-to-end open source platform for machine learning, was found to contain a vulnerability in versions prior to 2.6.0. The vulnerability (CVE-2021-37641) was discovered in the tf.raw_ops.RaggedGather operation where improper validation of arguments could trigger a read from outside the bounds of heap allocated buffers. The issue was reported by members of the Aivul Team from Qihoo 360 and was patched in August 2021 (GitHub Advisory, NVD).

Technical details

The vulnerability stems from two implementation flaws in the RaggedGather operation: first, it directly reads the first dimension of a tensor shape before verifying that the tensor has a rank of at least 1 (not a scalar), and second, it fails to validate that the paramsnestedsplits list is not empty. The issue received a CVSS v3.1 base score of 7.1 HIGH with vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H (NVD).

Impact

When successfully exploited, this vulnerability could allow an attacker to trigger reads from outside the bounds of heap allocated buffers, potentially leading to information disclosure or denial of service. The vulnerability affects TensorFlow versions 2.3.0 through 2.5.x before their respective security patches (NVD).

Mitigation and workarounds

The vulnerability was patched in GitHub commit a2b743f6017d7b97af1fe49087ae15f0ac634373 and included in TensorFlow 2.6.0. The fix was also backported to TensorFlow 2.5.1, 2.4.3, and 2.3.4. Users are advised to upgrade to these patched versions (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-67511CRITICAL9.6
  • PythonPython
  • cai-framework
NoNoDec 11, 2025
CVE-2025-13780CRITICAL9.1
  • PythonPython
  • pgadmin4
NoYesDec 11, 2025
CVE-2025-67644HIGH7.3
  • PythonPython
  • langgraph-checkpoint-sqlite
NoYesDec 11, 2025
CVE-2025-67720MEDIUM6.5
  • PythonPython
  • pyrofork
NoYesDec 11, 2025
CVE-2025-67485MEDIUM5.3
  • PythonPython
  • mad-proxy
NoNoDec 10, 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