CVE-2021-29577
Python vulnerability analysis and mitigation

Overview

The vulnerability CVE-2021-29577 affects TensorFlow, an end-to-end open source platform for machine learning. The vulnerability was discovered in the implementation of tf.raw_ops.AvgPool3DGrad function, which was found to be vulnerable to a heap buffer overflow. The issue was disclosed on May 13, 2021, affecting TensorFlow versions prior to 2.5.0 (GitHub Advisory).

Technical details

The vulnerability stems from the implementation of tf.raw_ops.AvgPool3DGrad which assumes that the orig_input_shape and grad tensors have similar first and last dimensions but fails to validate this assumption. This oversight could lead to a heap buffer overflow condition. The vulnerability was assigned a Low severity rating (GitHub Advisory).

Impact

The vulnerability could potentially lead to heap buffer overflow conditions when processing specific input combinations in the AvgPool3DGrad operation. This could affect applications using TensorFlow's 3D pooling operations (GitHub Advisory).

Exploitability

A proof-of-concept exploit exists that demonstrates the vulnerability using specific tensor configurations with mismatched dimensions in the AvgPool3DGrad operation (GitHub Advisory).

Mitigation and workarounds

The vulnerability was patched in TensorFlow version 2.5.0. The fix was also backported to versions 2.1.4, 2.2.3, 2.3.3, and 2.4.2. Users are advised to upgrade to these patched versions. The fix implements additional validation checks for tensor dimensions, as documented in commit 6fc9141f42f6a72180ecd24021c3e6b36165fe0d (GitHub Advisory).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Arch Linux

Fixed

rolling

tensorflow: 2.5.0-1

Fixed

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-66455CRITICAL9.8
  • Python logoPython
  • lmdeploy
NoYesSep 18, 2026
CVE-2026-63374CRITICAL9.3
  • Python logoPython
  • airflow-3
NoYesSep 18, 2026
CVE-2026-59163CRITICAL9.1
  • Python logoPython
  • mnemosyne-memory
NoYesSep 18, 2026
CVE-2026-33625HIGH8.8
  • Python logoPython
  • lmdeploy
NoYesSep 18, 2026
CVE-2026-64847MEDIUM6.8
  • Python logoPython
  • py3-anyio
NoYesSep 18, 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