Input validation error in TensorFlow - CVE-2021-29521

 

Input validation error in TensorFlow - CVE-2021-29521

Published: May 13, 2021 / Updated: May 4, 2026


Vulnerability identifier: #VU129372
CSH Severity: Low
CVSSv4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2021-29521
CWE-ID: CWE-20
Exploitation vector: Local access
Exploit availability: No public exploit available
Vulnerable software:
TensorFlow
Software vendor:
TensorFlow

Description

The vulnerability allows a local user to cause a denial of service.

The vulnerability exists due to improper input validation in tf.raw_ops.SparseCountSparseOutput when processing a crafted dense_shape argument. A local user can supply a dense_shape tensor with negative values to cause a denial of service.

The issue is triggered because the implementation assumes the first element of dense_shape is positive and uses it to initialize a std::vector-backed data structure.


Remediation

Install security update from vendor's website.

External links