Out-of-bounds read in TensorFlow - CVE-2021-37670

 

Out-of-bounds read in TensorFlow - CVE-2021-37670

Published: August 12, 2021 / Updated: May 3, 2026


Vulnerability identifier: #VU129233
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2021-37670
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: TensorFlow
Affected software:
TensorFlow

Detailed vulnerability description

The vulnerability allows a remote attacker to disclose sensitive information.

The vulnerability exists due to an out-of-bounds read in tf.raw_ops.UpperBound and tf.raw_ops.LowerBound when processing specially crafted illegal arguments. A remote attacker can send specially crafted illegal arguments to disclose sensitive information.

The issue occurs because the rank of the sorted_input tensor is not validated before the first two dimensions are accessed.


How to mitigate CVE-2021-37670

Install security update from vendor's website.

Sources