Skip to main content
VulnerabilityPublished

CVE-2025-12060: Keras Directory Traversal Vulnerability

Affects kerasSource GCVE Database

0
Compare

Not known to be exploited · CVSS 9.8 Critical : upgrade to 3.12.0 as a priority.

Data as of 21 Nov 2026, 03:47 UTC

CVSS 3.1 base score
9.8Critical
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 3.12.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 2 Dec 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 20 Nov 2026.

What to do

Upgrade keras to 3.12.0.

Affected software

ProductAffectedFixed in
PyPIkerasAffected
  • <3.12.0
Fixed in
  • 3.12.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available in Keras version 3.12.0 that addresses this vulnerability by properly handling path filtering during tar archive extraction. Users should upgrade to Keras 3.12.0 or later to remediate this issue. No additional mitigation is required once the patch is applied.

Description

Keras's get_file() function is vulnerable to a directory traversal attack due to improper handling of symlink resolution in tar archive extraction. The vulnerability arises from a PATH_MAX symlink resolution bug in Python's tarfile module, which allows malicious tar archives to bypass Keras's path filtering and write files outside the intended extraction directory. This issue is fixed in Keras version 3.12.0.

References

Community reviews

Loading reviews…