9.1critical
TensorFlow through 2.5.0 allows attackers to overwrite arbitrary files via a crafted archive when tf.keras.utils.getfile is used with extra…
- Severity
- 9.1critical CVSS:3.1 by NVD
- Exploit likelihood
- 1.86% (higher than 79% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- BIT-TENSORFLOW-2021-35958
Description
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
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| google tensorflow | up to 2.5.0 | NVD |
| tensorflow (Bitnami) | before 2.5.1 | Bitnami Vulnerability Database |
All scores
| NVD | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| NVD | 6.4medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:P/A:P |
| Bitnami Vulnerability Database | critical rating |
Classification
What each source says
CVE List
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
NVD (es)
** EN DISPUTA ** TensorFlow versiones hasta 2.5.0, permite a atacantes sobrescribir archivos arbitrarios por medio de un archivo diseñado cuando se usa la función tf.keras.utils.get_file con extract=True. NOTA: la posición del proveedor es que la función tf.keras.utils.get_file no está pensado para archivos no confiables
References
| https://vuln.ryotak.me/advisories/52 | advisory, third-party-advisory | |
| https://github.com/tensorflow/tensorflow/blob/b8cad4c631096a34461ff8a07840d5f4d123ce32/tensorflow/python/keras/utils/data_utils.py#L137 | advisory, third-party-advisory | |
| https://docs.python.org/3/library/tarfile.html#tarfile.TarFile.extractall | advisory, third-party-advisory | |
| https://keras.io/api/ | advisory, third-party-advisory | |
| https://github.com/tensorflow/tensorflow/blob/b8cad4c631096a34461ff8a07840d5f4d123ce32/tensorflow/python/keras/README.md | advisory, third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-35958 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-35958 changed 2024-08-04 | CVE Terms of Use |
| NVD | CVE-2021-35958 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-TENSORFLOW-2021-35958 changed 2026-09-08 | Apache-2.0 |