CVE-2021-37643
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-37643) in its MatrixDiagPartOp implementation. The vulnerability was discovered and disclosed on August 11, 2021, affecting TensorFlow versions prior to 2.6.0. When users provide an invalid padding value to tf.raw_ops.MatrixDiagPartOp, the code triggers a null pointer dereference if the input is empty, or produces invalid behavior by ignoring all values after the first (GHSA Advisory).

Technical details

The vulnerability stems from the implementation reading the first value from a tensor buffer without first checking that the tensor has values to read from. This occurs in the MatrixDiagPartOp operation, where the code fails to validate the padding_value input properly. The issue affects all versions of the operation. The vulnerability has been assigned 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:N/I:H/A:H (NVD).

Impact

When exploited, this vulnerability can lead to null pointer dereference crashes if the input is empty, or cause the system to ignore values after the first one, potentially leading to incorrect computations. This affects the integrity and availability of systems using the vulnerable TensorFlow versions.

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 482da92095c4d48f8784b1f00dda4f81c28d2988, which ensures proper validation of the padding_value input. Users are recommended to upgrade to these patched versions (GHSA 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