GHSA-hjqc-jx6g-rwp9 · Severity: high · Ecosystem: pip — Keras Directory Traversal Vulnerability
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).
Conclusion & alert: CVE-2025-12060 is rated Moderate Risk (50.3/100): CVSS High severity, with low exploitation likelihood (EPSS 0.56%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-18 | 0.55% | 0.56% | +0.01% |
| 2 | 2026-06-15 | 0.09% | 0.55% | +0.46% |
| 3 | 2025-12-18 | — | 0.09% | — |
Full EPSS history (5 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 8.9 | 4.0 | HIGH |
|
— | — | [email protected] |
GHSA-hjqc-jx6g-rwp9 · Severity: high · Ecosystem: pip — Keras Directory Traversal Vulnerability
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2025-12060 not yet assigned priority: Debian including 1 source packages (keras), 1 status rows across 1 suites (bullseye): open 1. | https://security-tracker.debian.org/tracker/CVE-2025-12060 |
redhat
|
high | — | https://access.redhat.com/security/cve/CVE-2025-12060 |
ubuntu
|
medium | CVE-2025-12060 medium priority: Ubuntu including 1 source packages (keras), 7 status rows across 7 suites (bionic, focal, jammy, noble, plucky, questing, upstream): DNE 4, needs-triage 3. | https://ubuntu.com/security/CVE-2025-12060 |