Out-of-bounds write in TensorFlow - CVE-2021-29571

 

Out-of-bounds write in TensorFlow - CVE-2021-29571

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


Vulnerability identifier: #VU129321
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2021-29571
CWE-ID: CWE-787
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 cause memory corruption.

The vulnerability exists due to an out-of-bounds write in tf.raw_ops.DrawBoundingBoxesV2 when parsing specially crafted input tensors. A remote attacker can supply a crafted boxes tensor with a last dimension smaller than 4 to cause memory corruption.

The issue also involves out-of-bounds reads from heap-allocated data.


How to mitigate CVE-2021-29571

Install security update from vendor's website.

Sources