
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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.
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).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."