CVE-2021-29569
Python vulnerability analysis and mitigation

Overview

A heap out-of-bounds read vulnerability was discovered in TensorFlow's RequantizationRange operation (CVE-2021-29569). The vulnerability affects TensorFlow versions prior to 2.5.0, where the implementation assumes that inputmin and inputmax tensors have at least one element. When empty tensors are provided, accessing the first element results in a read outside the bounds of heap-allocated data (GitHub Advisory).

Technical details

The vulnerability exists in the implementation of tf.rawops.RequantizationRange where the code attempts to access the first element of potentially empty tensors through the flat() operation. The issue occurs in the lines 'const float inputminfloat = ctx->input(1).flat()(0)' and 'const float inputmax_float = ctx->input(2).flat()(0)', where if the tensors are empty, accessing the 0th element results in an out-of-bounds read (GitHub Commit).

Impact

The vulnerability allows an attacker to cause reads outside the bounds of heap-allocated data by supplying specially crafted inputs. This could potentially lead to information disclosure or program crashes (GitHub Advisory).

Mitigation and workarounds

The issue has been patched in TensorFlow 2.5.0 and backported to versions 2.1.4, 2.2.3, 2.3.3, and 2.4.2. Users should upgrade to these patched versions. The fix includes input validation to ensure that input tensors are not empty (GitHub Advisory).

Community reactions

The vulnerability was responsibly disclosed by Ying Wang and Yakun Zhang of Baidu X-Team, demonstrating ongoing security research efforts in the AI/ML community (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