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
References (5)
Core 5
Core References
Third Party Advisory x_refsource_misc
https://vuln.ryotak.me/advisories/52
Third Party Advisory x_refsource_misc
https://github.com/tensorflow/tensorflow/blob/b8cad4c631096a34461ff8a07840d5f4d123ce32/tensorflow/python/keras/utils/data_utils.py#L137
Third Party Advisory x_refsource_misc
https://docs.python.org/3/library/tarfile.html#tarfile.TarFile.extractall
Third Party Advisory x_refsource_misc
https://keras.io/api/
Third Party Advisory x_refsource_misc
https://github.com/tensorflow/tensorflow/blob/b8cad4c631096a34461ff8a07840d5f4d123ce32/tensorflow/python/keras/README.md
Scores
CVSS v3
9.1
EPSS
0.0109
EPSS Percentile
78.1%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Details
CWE
CWE-22
Status
published
Products (1)
google/tensorflow
< 2.5.0
Published
Jun 30, 2021
Tracked Since
Feb 18, 2026