QID 980193
QID 980193: Python (pip) Security Update for tensorflow-gpu (GHSA-3rcw-9p9x-582v)
Security update has been released for tensorflow-gpu,tensorflow,tensorflow-cpu to fix the vulnerability.
Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.
TensorFlow's `saved_model_cli` tool is vulnerable to a code injection as it [calls `eval` on user supplied strings](https://github.com/tensorflow/tensorflow/blob/87462bfac761435a46641ff2f10ad0b6e5414a4b/tensorflow/python/tools/saved_model_cli.py#L524-L550)
```python
def preprocess_input_exprs_arg_string(input_exprs_str):
...
for input_raw in filter(bool, input_exprs_str.split(';')):
...
input_key, expr = input_raw.split('=', 1)
input_dict[input_key] = eval(expr)
...
```
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.
- GHSA-3rcw-9p9x-582v -
github.com/advisories/GHSA-3rcw-9p9x-582v
CVEs related to QID 980193
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-3rcw-9p9x-582v | tensorflow |
|
|
| GHSA-3rcw-9p9x-582v | tensorflow-cpu |
|
|
| GHSA-3rcw-9p9x-582v | tensorflow-gpu |
|