6.1
MEDIUM CVSS 3.0
CVE-2026-12479
Path Traversal in keras-team/keras
Description

A path traversal vulnerability exists in keras-team/keras version 3.14.0, specifically in the `DiskIOStore.make` method within the Keras 3 model saving and loading library. This vulnerability arises from the improper handling of user-provided layer names, which are used to construct directory paths without sanitizing for parent directory components (`..`). While forward slashes (`/`) are restricted in layer names, directory traversal sequences are not. This allows an attacker to craft a malicious Keras model that, when saved or loaded, can escape the intended temporary working directory and perform unauthorized file system operations, such as creating directories or writing files in arbitrary locations.

INFO

Published Date :

June 22, 2026, 4:16 p.m.

Last Modified :

June 22, 2026, 7:49 p.m.

Remotely Exploit :

No
Affected Products

The following products are affected by CVE-2026-12479 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Keras keras
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 3.0 MEDIUM [email protected]
Solution
Sanitize user input for paths and update the library to prevent directory traversal.
  • Sanitize all user-provided path components.
  • Validate directory paths before use.
  • Update the keras library to a patched version.
  • Avoid loading untrusted models.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-12479.

URL Resource
https://huntr.com/bounties/188836b9-12fc-49c7-8dbf-04f60fe33743
https://huntr.com/bounties/188836b9-12fc-49c7-8dbf-04f60fe33743
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-12479 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-12479 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-12479 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jun. 22, 2026

    Action Type Old Value New Value
    Added Reference https://huntr.com/bounties/188836b9-12fc-49c7-8dbf-04f60fe33743
    Added SSVC {'id': 'CVE-2026-12479', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-06-22T16:29:31.140873Z'}
  • New CVE Received by [email protected]

    Jun. 22, 2026

    Action Type Old Value New Value
    Added Affected [{'vendor': 'keras-team', 'product': 'keras-team/keras', 'versions': [{'status': 'affected', 'version': 'unspecified', 'versionType': 'custom', 'lessThanOrEqual': 'latest'}]}]
    Added Description A path traversal vulnerability exists in keras-team/keras version 3.14.0, specifically in the `DiskIOStore.make` method within the Keras 3 model saving and loading library. This vulnerability arises from the improper handling of user-provided layer names, which are used to construct directory paths without sanitizing for parent directory components (`..`). While forward slashes (`/`) are restricted in layer names, directory traversal sequences are not. This allows an attacker to craft a malicious Keras model that, when saved or loaded, can escape the intended temporary working directory and perform unauthorized file system operations, such as creating directories or writing files in arbitrary locations.
    Added CVSS V3 AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
    Added CWE CWE-22
    Added Reference https://huntr.com/bounties/188836b9-12fc-49c7-8dbf-04f60fe33743
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.