Input validation error in TensorFlow - CVE-2021-37658
Published: August 12, 2021 / Updated: May 4, 2026
Vulnerability identifier: #VU129248
CSH Severity: Medium
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2021-37658
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerable software:
TensorFlow
TensorFlow
Software vendor:
TensorFlow
TensorFlow
Description
The vulnerability allows a remote attacker to cause undefined behavior.
The vulnerability exists due to improper input validation in MatrixSetDiagV* ops when processing a crafted empty k tensor. A remote attacker can send crafted input to trigger reference binding to a null pointer and cause undefined behavior.
Remediation
Install security update from vendor's website.