{"api_version":"1","generated_at":"2026-07-14T05:03:47+00:00","cve":"CVE-2021-35958","urls":{"html":"https://cve.report/CVE-2021-35958","api":"https://cve.report/api/cve/CVE-2021-35958.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-35958","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-35958"},"summary":{"title":"CVE-2021-35958","description":"** DISPUTED ** 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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2021-06-30 01:15:00","updated_at":"2023-11-07 03:36:00"},"problem_types":["CWE-22"],"metrics":[],"references":[{"url":"https://docs.python.org/3/library/tarfile.html#tarfile.TarFile.extractall","name":"https://docs.python.org/3/library/tarfile.html#tarfile.TarFile.extractall","refsource":"MISC","tags":[],"title":"tarfile — Read and write tar archive files — Python 3.9.5 documentation","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://vuln.ryotak.me/advisories/52","name":"https://vuln.ryotak.me/advisories/52","refsource":"MISC","tags":[],"title":"Advisory #52 - RyotaK's Vuln DB","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/tensorflow/tensorflow/blob/b8cad4c631096a34461ff8a07840d5f4d123ce32/tensorflow/python/keras/utils/data_utils.py#L137","name":"https://github.com/tensorflow/tensorflow/blob/b8cad4c631096a34461ff8a07840d5f4d123ce32/tensorflow/python/keras/utils/data_utils.py#L137","refsource":"MISC","tags":[],"title":"tensorflow/data_utils.py at b8cad4c631096a34461ff8a07840d5f4d123ce32 · tensorflow/tensorflow · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/tensorflow/tensorflow/blob/b8cad4c631096a34461ff8a07840d5f4d123ce32/tensorflow/python/keras/README.md","name":"https://github.com/tensorflow/tensorflow/blob/b8cad4c631096a34461ff8a07840d5f4d123ce32/tensorflow/python/keras/README.md","refsource":"MISC","tags":[],"title":"tensorflow/README.md at b8cad4c631096a34461ff8a07840d5f4d123ce32 · tensorflow/tensorflow · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://keras.io/api/","name":"https://keras.io/api/","refsource":"MISC","tags":[],"title":"Keras API reference","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-35958","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-35958","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"35958","vulnerable":"1","versionEndIncluding":"2.5.0","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"google","cpe5":"tensorflow","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"35958","vulnerable":"1","versionEndIncluding":"2.5.0","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"tensorflow","cpe5":"tensorflow","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2021-35958","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"** DISPUTED ** 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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://vuln.ryotak.me/advisories/52","refsource":"MISC","name":"https://vuln.ryotak.me/advisories/52"},{"url":"https://github.com/tensorflow/tensorflow/blob/b8cad4c631096a34461ff8a07840d5f4d123ce32/tensorflow/python/keras/utils/data_utils.py#L137","refsource":"MISC","name":"https://github.com/tensorflow/tensorflow/blob/b8cad4c631096a34461ff8a07840d5f4d123ce32/tensorflow/python/keras/utils/data_utils.py#L137"},{"url":"https://docs.python.org/3/library/tarfile.html#tarfile.TarFile.extractall","refsource":"MISC","name":"https://docs.python.org/3/library/tarfile.html#tarfile.TarFile.extractall"},{"url":"https://keras.io/api/","refsource":"MISC","name":"https://keras.io/api/"},{"url":"https://github.com/tensorflow/tensorflow/blob/b8cad4c631096a34461ff8a07840d5f4d123ce32/tensorflow/python/keras/README.md","refsource":"MISC","name":"https://github.com/tensorflow/tensorflow/blob/b8cad4c631096a34461ff8a07840d5f4d123ce32/tensorflow/python/keras/README.md"}]}},"nvd":{"publishedDate":"2021-06-30 01:15:00","lastModifiedDate":"2023-11-07 03:36:00","problem_types":["CWE-22"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.1,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.2},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:N/I:P/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":6.4},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":4.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*","versionEndIncluding":"2.5.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"35958","Ordinal":"211467","Title":"CVE-2021-35958","CVE":"CVE-2021-35958","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"35958","Ordinal":"1","NoteData":"** DISPUTED ** 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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"35958","Ordinal":"2","NoteData":"2021-06-29","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"35958","Ordinal":"3","NoteData":"2021-06-29","Type":"Other","Title":"Modified"}]}}}