Vulnerability · CVE-2025-12060
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.
Published Oct 30, 2025 · catalog updated Feb 26, 2026 · Keras
Last checked Oct 25, 2026. A connected source was read within the last 7 days.
Check if you run it
No confirmed exploitation is on record for CVE-2025-12060. EPSS is 0.63%. Act only if a listed version of Keras is installed.
Gaps on this record
- No vendor fix or required action is stored. Compare the linked advisory before you change production.
Same product and reporting
- CVE-2026-1462 · High
- CVE-2025-49655 · Critical
- CVE-2025-9905 · High
- CVE-2025-9906 · High
- CVE-2025-8747 · High
- Severity
- High8.9
- Known exploitation
- Not in CISA/VulnCheck KEV
- EPSS
- 0.63%
- Remediation
- Advisory link
- Affected products
- vendor Keras keras 3.0.0 ≤3.11.3
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 tha
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- vendor Keras keras 3.0.0 ≤3.11.33.0.0 ≤3.11.3
How to fix CVE-2025-12060
No stored fix
No vendor fix text is stored. Use the linked advisory before you change production.
Version check
Seen in 3.0.0 ≤3.11.3
Advisory
Open the cve_org record and follow its fix.
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
No confirmed exploitation is on record for CVE-2025-12060. EPSS is 0.63%. Act only if a listed version of Keras is installed.
Which versions are affected?
Compare what you have installed with Keras keras 3.0.0 ≤3.11.3 3.0.0 ≤3.11.3. Compare the installed version with the linked vendor advisory before you change production.
What should an analyst verify?
No weakness class is stored. EPSS 0.63%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.
Code
The project this record applies to. Exploit listings stay in References.
Timeline
Detection, updates, and resolution for this record.
Oct 30, 2025 · EUVD
Detected
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 filesyste
Feb 26, 2026 · EUVD
Updated
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 filesyste
Sources
- CVE.orgVulnerability recordCVE-2025-12060
Official CVE identifier
cve.org - EUVDVulnerability recordEUVD-2025-37039
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 c
euvd.enisa.europa.eu
References
Freshness
Last verified in this catalog Oct 25, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.
- CVE.orgOct 24, 2026
- EUVDOct 24, 2026