CVE-2021-41228

High

Description

TensorFlow is an open source platform for machine learning. In affected versions 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 plaform where the CLI tool runs. However, given that the tool is always run manually, the impact of this is not severe. We have patched this by adding a `safe` flag which defaults to `True` and an explicit warning for users. The fix will be included in TensorFlow 2.7.0. We will also cherrypick this commit on TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4, as these are also affected and still in supported range.

SeverityHigh
CVSS7.5
Exploit probability—
ProductGoogle Tensorflow
PublishedNov 5, 2021
First seenNov 5, 2021

How to fix

Update
  • google tensorflow2.4.4, 2.5.2, 2.6.1 or later
  • tensorflow2.5.2, 2.4.4, 2.6.1, 2.7.0 or later
  • tensorflow-cpu2.5.2, 2.4.4, 2.6.1, 2.7.0 or later
  • tensorflow-gpu2.5.2, 2.4.4, 2.6.1, 2.7.0 or later

Affected products

ProductAffected versionsFixed in
google tensorflow2.4.0 ≤ v < 2.4.4, 2.5.0 ≤ v < 2.5.2, 2.6.0 ≤ v < 2.6.1, 2.7.02.4.4, 2.5.2, 2.6.1
tensorflowPyPI2.5.0 ≤ v < 2.5.2, v < 2.4.4, 2.6.0 ≤ v < 2.6.1, 2.7.0rc0 ≤ v < 2.7.02.5.2, 2.4.4, 2.6.1, 2.7.0
tensorflow-cpuPyPI2.5.0 ≤ v < 2.5.2, v < 2.4.4, 2.6.0 ≤ v < 2.6.1, 2.7.0rc0 ≤ v < 2.7.02.5.2, 2.4.4, 2.6.1, 2.7.0
tensorflow-gpuPyPI2.5.0 ≤ v < 2.5.2, v < 2.4.4, 2.6.0 ≤ v < 2.6.1, 2.7.0rc0 ≤ v < 2.7.02.5.2, 2.4.4, 2.6.1, 2.7.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.