Vulnerability Details : CVE-2021-35958
TensorFlow through 2.5.0 allows attackers to overwrite arbitrary files via a crafted archive when tf.keras.utils.get_file is used with extract=True. NOTE: the vendor's position is that tf.keras.utils.get_file is not intended for untrusted archives
Products affected by CVE-2021-35958
- cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-35958
0.19%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 57 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-35958
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
6.4
|
MEDIUM | AV:N/AC:L/Au:N/C:N/I:P/A:P |
10.0
|
4.9
|
NIST | |
9.1
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
3.9
|
5.2
|
NIST |
CWE ids for CVE-2021-35958
-
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.Assigned by: nvd@nist.gov (Primary)
References for CVE-2021-35958
-
https://keras.io/api/
Keras API referenceThird Party Advisory
-
https://github.com/tensorflow/tensorflow/blob/b8cad4c631096a34461ff8a07840d5f4d123ce32/tensorflow/python/keras/utils/data_utils.py#L137
tensorflow/data_utils.py at b8cad4c631096a34461ff8a07840d5f4d123ce32 · tensorflow/tensorflow · GitHubThird Party Advisory
-
https://docs.python.org/3/library/tarfile.html#tarfile.TarFile.extractall
tarfile — Read and write tar archive files — Python 3.9.6 documentationThird Party Advisory
-
https://github.com/tensorflow/tensorflow/blob/b8cad4c631096a34461ff8a07840d5f4d123ce32/tensorflow/python/keras/README.md
tensorflow/README.md at b8cad4c631096a34461ff8a07840d5f4d123ce32 · tensorflow/tensorflow · GitHubThird Party Advisory
-
https://vuln.ryotak.me/advisories/52
Advisory #52 - RyotaK's Vuln DBThird Party Advisory
Jump to