Vulnerability Details : CVE-2022-29216
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.
Products affected by CVE-2022-29216
- cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*
- cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*
- cpe:2.3:a:google:tensorflow:2.7.0:rc0:*:*:*:*:*:*
- cpe:2.3:a:google:tensorflow:2.7.0:rc1:*:*:*:*:*:*
- cpe:2.3:a:google:tensorflow:2.8.0:rc0:*:*:*:*:*:*
- cpe:2.3:a:google:tensorflow:2.8.0:rc1:*:*:*:*:*:*
- cpe:2.3:a:google:tensorflow:2.9.0:rc1:*:*:*:*:*:*
- cpe:2.3:a:google:tensorflow:2.9.0:rc0:*:*:*:*:*:*
- cpe:2.3:a:google:tensorflow:2.8.0:-:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-29216
0.10%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 41 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-29216
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
4.6
|
MEDIUM | AV:L/AC:L/Au:N/C:P/I:P/A:P |
3.9
|
6.4
|
NIST | |
7.8
|
HIGH | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
1.8
|
5.9
|
NIST | |
7.8
|
HIGH | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
1.8
|
5.9
|
GitHub, Inc. |
CWE ids for CVE-2022-29216
-
The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.Assigned by: security-advisories@github.com (Primary)
References for CVE-2022-29216
-
https://github.com/tensorflow/tensorflow/blob/f3b9bf4c3c0597563b289c0512e98d4ce81f886e/tensorflow/python/tools/saved_model_cli.py#L566-L574
tensorflow/saved_model_cli.py at f3b9bf4c3c0597563b289c0512e98d4ce81f886e · tensorflow/tensorflow · GitHubThird Party Advisory
-
https://github.com/tensorflow/tensorflow/releases/tag/v2.6.4
Release TensorFlow 2.6.4 · tensorflow/tensorflow · GitHubRelease Notes;Third Party Advisory
-
https://github.com/tensorflow/tensorflow/security/advisories/GHSA-75c9-jrh4-79mc
Code injection in `saved_model_cli` · Advisory · tensorflow/tensorflow · GitHubExploit;Patch;Third Party Advisory
-
https://github.com/tensorflow/tensorflow/releases/tag/v2.7.2
Release TensorFlow 2.7.2 · tensorflow/tensorflow · GitHubRelease Notes;Third Party Advisory
-
https://github.com/tensorflow/tensorflow/releases/tag/v2.9.0
Release TensorFlow 2.9.0 · tensorflow/tensorflow · GitHubRelease Notes;Third Party Advisory
-
https://github.com/tensorflow/tensorflow/commit/8b202f08d52e8206af2bdb2112a62fafbc546ec7
Remove use of `eval` when evaluating the input example. · tensorflow/tensorflow@8b202f0 · GitHubPatch;Third Party Advisory
-
https://github.com/tensorflow/tensorflow/releases/tag/v2.8.1
Release TensorFlow 2.8.1 · tensorflow/tensorflow · GitHubRelease Notes;Third Party Advisory
-
https://github.com/tensorflow/tensorflow/commit/c5da7af048611aa29e9382371f0aed5018516cac
Always do safe parsing · tensorflow/tensorflow@c5da7af · GitHubPatch;Third Party Advisory
Jump to