CVEBrief

Home / Keras / Keras / CVE-2025-12060

CVE-2025-12060: is it exploited, and which versions of Keras are affected and fixed?

CVE-2025-12060 is a path traversal (reading or writing files outside the intended folder) vulnerability in Keras. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 18:39 UTC). Affected: keras before 3.12.0 (GitHub advisory GHSA-hjqc-jx6g-rwp9). Fixed in 3.12.0 (GitHub advisory GHSA-hjqc-jx6g-rwp9). Severity: High (8.9, CVSS 4.0, from Google).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 18:39 UTC, CVE record November 19, 2026, 07:10 UTC and NVD November 19, 2026, 07:16 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 18:39 UTC
Affected
keras before 3.12.0
GitHub advisory GHSA-hjqc-jx6g-rwp9
Fixed in
3.12.0
GitHub advisory GHSA-hjqc-jx6g-rwp9
Severity
High 8.9
CVSS 4.0 from Google
Exploit odds (EPSS)
0.65% in 30 days
higher than 52% of CVEs; FIRST, December 3, 2026
Free for up to 3 items: a weekly email, and an alert the day CISA lists one as exploited. We email you once to confirm. More about the watch

What is CVE-2025-12060?

Keras keras.utils.get_file Utility Path 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).

From the CVE record by Google, last updated February 26, 2026, 16:56 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
KerasKeras utilfrom 3.0.0 through 3.11.3

As the CVE record by Google states it, last updated February 26, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which packages are affected, and in which version is each fixed?

EcosystemPackageAffectedFixed inAdvisory
PyPIkeras< 3.12.03.12.0GHSA-hjqc-jx6g-rwp9

GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated December 2, 2025. Summary: Keras Directory Traversal Vulnerability.

How severe is CVE-2025-12060?

ScoreVersionVectorSource
High 8.9CVSS 4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:HGoogle

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2025-12060 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: none; automatable: no; technical impact: total (CISA ADP, November 1, 2025)
EPSS
0.65% probability of exploitation activity in the next 30 days, percentile 52.4 (FIRST EPSS, scores of December 3, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

Who found and reported it?

As published in the CVE record; contact details are removed.

When was it published, and where is the official record?

Reserved
October 22, 2025
Published
October 30, 2025, 17:10 UTC
CVE record updated
February 26, 2026, 16:56 UTC by Google
NVD
Deferred, last modified October 19, 2026, 13:10 UTC
Last checked
CVE list November 19, 2026, 07:10 UTC; NVD November 19, 2026, 07:16 UTC; KEV December 3, 2026, 18:39 UTC; EPSS December 3, 2026
Official record
cve.org · NVD

What other CVEs affect Keras?

Every CVE in Keras

Questions about CVE-2025-12060

Is CVE-2025-12060 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 18:39 UTC. FIRST's EPSS gives it a 0.65% chance of exploitation activity in the next 30 days (scores of December 3, 2026).

Which versions of Keras are affected by CVE-2025-12060?

keras before 3.12.0, per the GitHub advisory GHSA-hjqc-jx6g-rwp9. The tables above give every range the sources list.

Which version fixes CVE-2025-12060?

3.12.0, per the GitHub advisory GHSA-hjqc-jx6g-rwp9. Check the vendor's advisory before you rely on it.

How severe is CVE-2025-12060?

High (8.9, CVSS 4.0, from Google). The severity table above shows each score with its source.

Where is the official record of CVE-2025-12060?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.