{"id":"CVE-2021-35958","aliases":["BIT-tensorflow-2021-35958","EUVD-2021-22592","GHSA-4cm9-63x5-55wm"],"status":"disputed","title":"** DISPUTED ** TensorFlow through 2.5.0 allows attackers to overwrite arbitrary files via a...","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","severity":{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.01864,"percentile":0.7945,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-22","CWE-668"],"published":"2021-06-30T00:12:53Z","modified":"2026-10-20T10:54:17Z","fixes":[{"ecosystem":"Bitnami","package":"tensorflow","fixed_in":["2.5.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Bitnami","package":"tensorflow","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.5.1"}]}]}],"products":[{"vendor":"google","product":"tensorflow"}],"references":[{"url":"https://vuln.ryotak.me/advisories/52","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory"]},{"url":"https://github.com/tensorflow/tensorflow/blob/b8cad4c631096a34461ff8a07840d5f4d123ce32/tensorflow/python/keras/utils/data_utils.py#L137","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory"]},{"url":"https://docs.python.org/3/library/tarfile.html#tarfile.TarFile.extractall","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory"]},{"url":"https://keras.io/api/","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory"]},{"url":"https://github.com/tensorflow/tensorflow/blob/b8cad4c631096a34461ff8a07840d5f4d123ce32/tensorflow/python/keras/README.md","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-35958","tags":["web"]},{"url":"https://keras.io/api"},{"url":"https://github.com/advisories/GHSA-4cm9-63x5-55wm"}],"sources":{"cve":[{"id":"CVE-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","status":"disputed","published":"2021-06-30T00:12:53Z","modified":"2024-08-04T00:47:42.583Z","updated_at":"2026-11-02T14:33:09.864034Z"}],"euvd":[{"id":"EUVD-2021-22592","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","status":"published","published":"2021-06-30T00:12:53Z","modified":"2024-08-04T00:47:42Z","updated_at":"2026-11-03T03:24:29.877227Z"}],"ghsa":[{"id":"GHSA-4cm9-63x5-55wm","title":"** DISPUTED ** TensorFlow through 2.5.0 allows attackers to overwrite arbitrary files via a...","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.","status":"published","published":"2022-05-24T19:06:41Z","modified":"2024-03-21T03:34:05Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","level":"critical"}],"cwes":["CWE-22","CWE-668"],"updated_at":"2026-11-02T14:55:42.026509Z"}],"nvd":[{"id":"CVE-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","status":"disputed","published":"2021-06-30T01:15:07.033Z","modified":"2026-06-17T03:58:06.22Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":6.4,"vector":"AV:N/AC:L/Au:N/C:N/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:06:55.259633Z"}],"osv":[{"id":"CVE-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","status":"published","published":"2021-06-30T01:15:07.033Z","modified":"2026-10-20T10:54:17.96415176Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:20.13324Z"},{"id":"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","status":"published","published":"2024-03-06T11:17:54.373Z","modified":"2026-09-08T08:48:10.847017732Z","updated_at":"2026-11-02T15:28:35.51001Z"}]}}
