Vulnerability record · CVE-2021-35958 · published 30 June 2021
CVE-2021-35958: Google tensorflow path traversal vulnerability
Google · Tensorflow
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
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
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| 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/dat | 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/dat | Third Party Advisory |
| https://keras.io/api/ | Third Party Advisory |
| https://vuln.ryotak.me/advisories/52 | Third Party Advisory |
Track CVE-2021-35958 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2021-35958), CISA KEV, FIRST EPSS (scores of 2026-11-18). This page is refreshed as NVD updates the record.