Code injection in `saved_model_cli`
tensorflow
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| tensorflow PyPI |
|
|
tensorflow
| Product | Affected | Fixed in |
|---|---|---|
| tensorflow PyPI |
|
|
| tensorflow-cpu PyPI |
|
|
| tensorflow-gpu PyPI |
|
|
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.
From the CVE record · GitHub_M
TensorFlow's `saved_model_cli` calls `eval` on user-supplied strings, allowing an attacker to run arbitrary code on the machine where the tool runs. Exploitation requires someone to run the CLI tool manually with attacker-supplied input; the input does not specify whether authentication is needed.
Anyone using affected versions of the PyPI `tensorflow`, `tensorflow-cpu`, or `tensorflow-gpu` packages: versions below 2.4.4, 2.5.0 through 2.5.1, 2.6.0, or 2.7.0 prereleases.