8.9

CVE-2025-12060: keras Path Traversal

CVSS: 8.9v4.0HighDeferred
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) Path Traversal vulnerability in keras. EPSS estimates a 0.63% chance of exploitation in the next 30 days, higher than 49.2% of scored vulnerabilities.

Overall risk
36/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.9/10
010
High · v4.0 (CVE.org)
EPSS score
0.63%
0%100%
Low · +0.04 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known 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.63%

Chance of exploitation in the next 30 days

Percentile

49%

Versus all other CVEs

30-day change

+0.04 pp

From 0.59% on 18-09-2026

18-09-202618-10-2026
EPSS score
0.63%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

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