CVE-2022-29216
Summary
| CVE | CVE-2022-29216 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2022-05-21 00:15:00 UTC |
| Updated | 2022-06-03 02:47:00 UTC |
| Description | TensorFlow is an open source platform for machine learning. Prior to versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4, TensorFlow's `saved_model_cli` tool is vulnerable to a code injection. This can be used to open a reverse shell. This code path was maintained for compatibility reasons as the maintainers had several test cases where numpy expressions were used as arguments. However, given that the tool is always run manually, the impact of this is still not severe. The maintainers have now removed the `safe=False` argument, so all parsing is done without calling `eval`. The patch is available in versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4. |
Risk And Classification
Problem Types: CWE-94
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Tensorflow | All | All | All | All | |
| Application | Tensorflow | 2.7.0 | rc0 | All | All | |
| Application | Tensorflow | 2.7.0 | rc1 | All | All | |
| Application | Tensorflow | 2.8.0 | - | All | All | |
| Application | Tensorflow | 2.8.0 | rc0 | All | All | |
| Application | Tensorflow | 2.8.0 | rc1 | All | All | |
| Application | Tensorflow | 2.9.0 | rc0 | All | All | |
| Application | Tensorflow | 2.9.0 | rc1 | All | All |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Always do safe parsing · tensorflow/tensorflow@c5da7af · GitHub | MISC | github.com | |
| Release TensorFlow 2.8.1 · tensorflow/tensorflow · GitHub | MISC | github.com | |
| Release TensorFlow 2.9.0 · tensorflow/tensorflow · GitHub | MISC | github.com | |
| Release TensorFlow 2.7.2 · tensorflow/tensorflow · GitHub | MISC | github.com | |
| Release TensorFlow 2.6.4 · tensorflow/tensorflow · GitHub | MISC | github.com | |
| Code injection in `saved_model_cli` · Advisory · tensorflow/tensorflow · GitHub | CONFIRM | github.com | |
| tensorflow/saved_model_cli.py at f3b9bf4c3c0597563b289c0512e98d4ce81f886e · tensorflow/tensorflow · GitHub | MISC | github.com | |
| Remove use of `eval` when evaluating the input example. · tensorflow/tensorflow@8b202f0 · GitHub | MISC | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.