CVE-2025-12060
Last modified
CVE-2025-12060 is a high-severity vulnerability rated 8.9/10 on the CVSS scale. 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. EPSS estimates a 0.59% chance of exploitation in the next 30 days.
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).
Metrics
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
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-12060?
How severe is CVE-2025-12060?
How do I fix CVE-2025-12060?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-12055HYDRA X, MIP 2 and FEDRA 2 of MPDV Mikrolab GmbH suffer from…7.5
- CVE-2025-12056Out-of-bounds Read in Shelly Pro 3EM (before v1.4.4) allows …8.3
- CVE-2025-12057The WavePlayer WordPress plugin before 3.8.0 does not have a…9.8
- CVE-2025-12058The Keras.Model.load_model method, including when executed w…5.9
- CVE-2025-12059Insertion of Sensitive Information into Externally-Accessibl…9.8
- CVE-2025-1206A vulnerability was found in Codezips Gym Management System …8.8
- CVE-2025-12061The TAX SERVICE Electronic HDM WordPress plugin before 1.2.1…8.6
- CVE-2025-12062The WP Maps – Store Locator,Google Maps,OpenStreetMap,Mapbox…8.8
- CVE-2025-12063An insecure direct object reference allowed a non-admin user…5.7
- CVE-2025-12064The WP2Social Auto Publish plugin for WordPress is vulnerabl…6.1
- CVE-2025-12065The WP Carticon plugin for WordPress is vulnerable to Stored…4.4
- CVE-2025-12066The WP Delete Post Copies plugin for WordPress is vulnerable…4.4
Are you affected by CVE-2025-12060?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
