8.9

CVE-2025-12060: Keras keras.utils.get_file Utility Path Traversal Vulnerability

Deferred
AliasesGHSA-hjqc-jx6g-rwp9PYSEC-2026-1486UBUNTU-CVE-2025-12060
Published 30-10-2025Last modified 26-02-2026

Vulnerability summary

CVE-2025-12060 is a high (CVSS 8.9) vulnerability in keras. EPSS estimates a 0.65% chance of exploitation in the next 30 days, higher than 52.3% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 8.9, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
8.9/10
010
High · v4.0 (CVE.org)
EPSS score
0.65%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 1 · Downstream 0 · Related 3

Timeline

  1. 30-10-2025
    PublishedVulnerability first disclosed.
  2. 26-02-2026
    Last modifiedVulnerability information updated.

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 metrics

8 scores · 7 sources · 2 versions

EPSS trend

Probability

0.65%

Chance of exploitation in the next 30 days

Percentile

52%

Versus all other CVEs

30-day change

Increase +0.01 pp

From 0.63% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard3 products
  • kubeflow-pipelines-visualization-server< 2.14.3-r2
  • tensorflow-cpu-jupyter< 2.20.0-r4
  • tensorflow-gpu-jupyter< 2.20.0-r3
Debian1 product
  • kerasAll versions (No fix recorded)
Keras1 product
  • keras≥ 3.0.0, ≤ 3.11.3
PyPI1 product
  • keras< 3.12.0
Ubuntu1 product
  • kerasAll versions (No fix recorded)
Wolfi1 product
  • kubeflow-pipelines-visualization-server< 2.14.3-r2

6 vendors · 8 products

References

14 links
Show all 14 references