CVEvulnerability
CVE-2021-35958
9.1 CRITICAL
Official page ↗
- Status
- Modified
- Published
- 2021-06-30
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 9.1 CRITICAL — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
- CVSS 2.0 ([email protected])
- 6.4 MEDIUM — AV:N/AC:L/Au:N/C:N/I:P/A:P
- Weaknesses
- CWE-22
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 configurations
• google tensorflow (<= 2.5.0)
Related
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://docs.python.org/3/library/tarfile.html#tarfile.TarFile.extractall Third Party Advisory
- https://github.com/tensorflow/tensorflow/blob/b8cad4c631096a34461ff8a07840d5f4d123ce32/tensorflow/python/keras/README.md Third Party Advisory
- https://github.com/tensorflow/tensorflow/blob/b8cad4c631096a34461ff8a07840d5f4d123ce32/tensorflow/python/keras/utils/data_utils.py#L137 Third Party Advisory
- https://keras.io/api/ Third Party Advisory
- https://vuln.ryotak.me/advisories/52 Third Party Advisory
- https://docs.python.org/3/library/tarfile.html#tarfile.TarFile.extractall Third Party Advisory
- https://github.com/tensorflow/tensorflow/blob/b8cad4c631096a34461ff8a07840d5f4d123ce32/tensorflow/python/keras/README.md Third Party Advisory
- https://github.com/tensorflow/tensorflow/blob/b8cad4c631096a34461ff8a07840d5f4d123ce32/tensorflow/python/keras/utils/data_utils.py#L137 Third Party Advisory
- https://keras.io/api/ Third Party Advisory
- https://vuln.ryotak.me/advisories/52 Third Party Advisory