CVE-2021-37679
Python vulnerability analysis and mitigation

Overview

TensorFlow, an end-to-end open source platform for machine learning, was found to have a vulnerability (CVE-2021-37679) affecting versions prior to 2.6.0. The vulnerability was discovered in the nested implementation of tf.map_fn when handling RaggedTensor inputs without proper function signatures (TensorFlow Advisory).

Technical details

The vulnerability occurs when nesting a tf.map_fn within another tf.map_fn call with a RaggedTensor input and no function signature provided. The code incorrectly assumes the output is a fully specified tensor and fills the output buffer with uninitialized contents from the heap. The root cause lies in the conversion from a Variant tensor to a RaggedTensor, where the implementation fails to verify that all inner shapes match, resulting in additional dimensions and potential data leakage (TensorFlow Advisory).

Impact

The vulnerability can lead to two significant impacts: memory information leakage from the heap when processing RaggedTensors, and potential data loss during tensor processing. When exploited, the vulnerability causes the output tensor to contain unintended data from the heap, which could expose sensitive information (TensorFlow Advisory).

Mitigation and workarounds

The vulnerability has been patched in TensorFlow versions 2.3.4, 2.4.3, 2.5.1, and 2.6.0. The fix was implemented in GitHub commit 4e2565483d0ffcadc719bd44893fb7f609bb5f12. Users are advised to upgrade to these patched versions to mitigate the vulnerability (TensorFlow 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
  • cpe:2.3:a:pgadmin:pgadmin
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