PT-2021-18270 · Google · Tensorflow

Yakun Zhang

+1

·

Published

2021-05-14

·

Updated

2024-03-06

·

CVE-2021-29519

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 version 2.4.2 TensorFlow version 2.3.3 TensorFlow version 2.2.3 TensorFlow version 2.1.4
Description: The API of tf.raw ops.SparseCross allows combinations which would result in a CHECK-failure and denial of service. This is because the implementation is tricked to consider a tensor of type tstring which in fact contains integral elements. Fixing the type confusion by preventing mixing DT STRING and DT INT64 types solves this issue.
Recommendations: For TensorFlow versions prior to 2.5.0, update to version 2.5.0 or later to resolve the issue. For TensorFlow version 2.4.2, apply the cherrypicked commit to resolve the issue. For TensorFlow version 2.3.3, apply the cherrypicked commit to resolve the issue. For TensorFlow version 2.2.3, apply the cherrypicked commit to resolve the issue. For TensorFlow version 2.1.4, apply the cherrypicked commit to resolve the issue. As a temporary workaround, consider restricting the use of the tf.raw ops.SparseCross function until a patch is available.

Exploit

Fix

Type Confusion

Weakness Enumeration

Related Identifiers

BIT-TENSORFLOW-2021-29519
CVE-2021-29519
GHSA-772J-H9XW-FFP5
PYSEC-2021-156
PYSEC-2021-447
PYSEC-2021-645

Affected Products

Tensorflow