CVE-2021-29561
Python vulnerability analysis and mitigation

Overview

TensorFlow, an end-to-end open source platform for machine learning, was found to contain a vulnerability (CVE-2021-29561) that allows attackers to cause a denial of service through a CHECK-failure in tf.raw_ops.LoadAndRemapMatrix. The vulnerability was discovered by Yakun Zhang and Ying Wang of Baidu X-Team and was disclosed on May 14, 2021. The issue affects TensorFlow versions prior to 2.5.0 (GitHub Advisory).

Technical details

The vulnerability stems from an implementation assumption that the 'ckpt_path' parameter is always a valid scalar. The implementation in the LoadAndRemapMatrix operation does not properly validate the input tensor before calling the scalar()() function. An attacker can exploit this by sending any non-scalar tensor as the first argument of LoadAndRemapMatrix, which triggers a rank CHECK failure in the scalar()() function and terminates the process (GitHub Advisory). The vulnerability has been assigned a CVSS v3.1 base score of 5.5 MEDIUM (NVD).

Impact

The primary impact of this vulnerability is denial of service. When successfully exploited, the vulnerability causes the TensorFlow process to terminate, disrupting any machine learning operations or services running on the affected system (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in multiple TensorFlow versions. The fix was included in TensorFlow 2.5.0 and was backported to versions 2.4.2, 2.3.3, 2.2.3, and 2.1.4. Users are advised to upgrade to these patched versions. The fix implements proper validation of the ckpt_path tensor to ensure it contains exactly one element (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-2025-66423HIGH7.1
  • PythonPython
  • tryton-server
NoYesNov 30, 2025
CVE-2025-66454MEDIUM6.5
  • PythonPython
  • arcade-mcp-server
NoYesDec 02, 2025
CVE-2025-66424MEDIUM6.5
  • PythonPython
  • trytond
NoYesNov 30, 2025
CVE-2025-66422MEDIUM4.3
  • PythonPython
  • tryton-server
NoYesNov 30, 2025
CVE-2025-65858LOW3.5
  • PythonPython
  • calibreweb
NoNoDec 02, 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