CVE & CISA-KEV Catalog

CVE-2021-37657

HIGH
7.1
CVSS v3
NVD

Description

TensorFlow is an end-to-end open source platform for machine learning. In affected versions an attacker can cause undefined behavior via binding a reference to null pointer in all operations of type `tf.raw_ops.MatrixDiagV*`. The implementation has incomplete validation that the value of `k` is a valid tensor. We have check that this value is either a scalar or a vector, but there is no check for the number of elements. If this is an empty tensor, then code that accesses the first element of the tensor is wrong. We have patched the issue in GitHub commit f2a673bd34f0d64b8e40a551ac78989d16daad09. The fix will be included in TensorFlow 2.6.0. We will also cherrypick this commit on TensorFlow 2.5.1, TensorFlow 2.4.3, and TensorFlow 2.3.4, as these are also affected and still in supported range.

How to fix

Remediation Available
tensorflowNVD
Affected:>= 2.4.0, < 2.4.3Fixed in:2.4.3CVE-2021-37657derived from NVD

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H

Exploit Intelligence

0.17%probability of exploitation in 30 days
6thpercentile

Low risk: more likely to be exploited than 6% of all known CVEs.

References

Third-Party Advisory1

Related Vulnerabilities

Other CWE-824 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2018-9948Medium6.564%--
CVE-2018-11803High7.558%-Fix
CVE-2022-21971High7.854%KEVFix
CVE-2010-1818High9.343%--
CVE-2015-1770High8.835%KEV-
CVE-2017-12561Critical9.831%--
Embed a live status badge for CVE-2021-37657
CVE-2021-37657 severity badge

Markdown

[![CVE-2021-37657](https://tridentstack.com/cve/badge/CVE-2021-37657.svg)](https://tridentstack.com/cve/CVE-2021-37657)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-37657"><img src="https://tridentstack.com/cve/badge/CVE-2021-37657.svg" alt="CVE-2021-37657"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.