CVEFinder.io

CVE-2025-12060

πŸ”Ά medium
πŸ” Scan for this CVE
Summary

The keras.utils.get_file API in Keras, when used with the extract=True option for tar archives, is vulnerable to a path traversal attack. The utility uses Python's tarfile.extractall function without the filter="data" feature. A remote attacker can craft a malicious tar archive containing special symlinks, which, when extracted, allows them to write arbitrary files to any location on the filesystem outside of the intended destination folder. This vulnerability is linked to the underlying Python

Description

The keras.utils.get_file API in Keras, when used with the extract=True option for tar archives, is vulnerable to a path traversal attack. The utility uses Python's tarfile.extractall function without the filter="data" feature. A remote attacker can craft a malicious tar archive containing special symlinks, which, when extracted, allows them to write arbitrary files to any location on the filesystem outside of the intended destination folder. This vulnerability is linked to the underlying Python tarfile weakness, identified as CVE-2025-4517.Β Note that upgrading Python to one of the versions that fix CVE-2025-4517 (e.g. Python 3.13.4) is not enough. One additionally needs to upgrade Keras to a version with the fix (Keras 3.12).

CVSS Score
-
EPSS Score
0.1
Exploit Probability
Published Date
2025-10-30
First Seen: 2026-01-05
🎯 CISA SSVC Assessment Updated: Oct 30, 2025
πŸ” Exploitation Status
None
No known exploits
βš™οΈ Automatable
NO
Requires human interaction
πŸ’₯ Technical Impact
Total
Complete system compromise possible
πŸ† Discovered By
Krishna Gudimetla
SSVC data provided by CISA
Last Modified 2025-11-04
CVSS Vector 4.0 CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CWE IDs (Weakness Types)

πŸ“¦ Affected Products 1

πŸ”— References 2

πŸ”— Related CVEs 6

CVE ID Severity CVSS EPSS Summary Published
CVE-2026-12481 β›” critical 9.8 0.4 A vulnerability in keras-team/keras version 3.14.0 allows for arbitrary code execution due to improper handling of deser... 2026-07-03
CVE-2026-11816 ⚠️ high 8.1 0.6 Keras versions prior to 3.14.0 are vulnerable to a path traversal issue in the archive extraction utilities located in `... 2026-06-11
CVE-2026-1462 ⚠️ high 7.8 0.4 A vulnerability in the `TFSMLayer` class of the `keras` package, version 3.13.0, allows attacker-controlled TensorFlow S... 2026-04-13
CVE-2026-1669 ⚠️ high 7.5 0.3 Arbitrary file read in the model loading mechanism (HDF5 integration) in Keras versions 3.0.0 through 3.13.1 on all supp... 2026-02-11
CVE-2026-0897 ⚠️ high 7.5 0.3 Allocation of Resources Without Limits or Throttling in the HDF5 weight loading component in Google Keras 3.0.0 throu... 2026-01-15
CVE-2025-12058 πŸ”Ά medium - 0.1 The Keras.Model.load_model method, including when executed with the intended security mitigation safe_mode=True, is vuln... 2025-10-29
These CVEs affect the same products