PT-2021-18355 · Google · Tensorflow

Published

2021-05-14

·

Updated

2024-03-06

·

CVE-2021-29604

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions TensorFlow versions prior to 2.5.0 TensorFlow versions 2.4.2 and earlier TensorFlow versions 2.3.3 and earlier TensorFlow versions 2.2.3 and earlier TensorFlow versions 2.1.4 and earlier
Description The TFLite implementation of hashtable lookup in TensorFlow is vulnerable to a division by zero error. An attacker can craft a model such that the values's first dimension would be 0, leading to this error. The issue is related to the calculation of num rows and row bytes in the hashtable lookup function.
Recommendations For versions prior to 2.5.0, update to TensorFlow 2.5.0 or later to resolve the issue. For versions 2.4.2 and earlier, update to TensorFlow 2.4.2 or later to resolve the issue. For versions 2.3.3 and earlier, update to TensorFlow 2.3.3 or later to resolve the issue. For versions 2.2.3 and earlier, update to TensorFlow 2.2.3 or later to resolve the issue. For versions 2.1.4 and earlier, update to TensorFlow 2.1.4 or later to resolve the issue. As a temporary workaround, consider restricting the use of the hashtable lookup function in TFLite until a patch is available.

Exploit

Fix

Divide By Zero

Weakness Enumeration

Related Identifiers

BIT-TENSORFLOW-2021-29604
CVE-2021-29604
GHSA-8RM6-75MF-7R7R
PYSEC-2021-241
PYSEC-2021-532
PYSEC-2021-730

Affected Products

Tensorflow