PT-2021-23201 · Google · Tensorflow

Omer Kaspi

·

Published

2021-11-05

·

Updated

2024-03-06

·

CVE-2021-41228

CVSS v3.1

7.8

High

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions TensorFlow versions prior to 2.7.0 TensorFlow versions 2.6.1 and earlier TensorFlow versions 2.5.2 and earlier TensorFlow versions 2.4.4 and earlier
Description TensorFlow's saved model cli tool is vulnerable to a code injection as it calls eval on user supplied strings. This can be used by attackers to run arbitrary code on the platform where the CLI tool runs. However, given that the tool is always run manually, the impact of this is not severe.
Recommendations For versions prior to 2.7.0, update to TensorFlow 2.7.0 or later. For versions 2.6.1 and earlier, update to TensorFlow 2.6.1 or later. For versions 2.5.2 and earlier, update to TensorFlow 2.5.2 or later. For versions 2.4.4 and earlier, update to TensorFlow 2.4.4 or later. As a temporary workaround, consider adding the safe flag with True value when using the saved model cli tool until a patch is available.

Exploit

Fix

Code Injection

OS Command Injection

Weakness Enumeration

Related Identifiers

BIT-TENSORFLOW-2021-41228
CVE-2021-41228
GHSA-3RCW-9P9X-582V
OPENSUSE-SU-2024:12116-1
PYSEC-2021-420
PYSEC-2021-637
PYSEC-2021-835

Affected Products

Tensorflow