CVE-2026-12479
Deferred Deferred - Pending Action

Path Traversal in Keras 3 Model Saving Library

Vulnerability report for CVE-2026-12479, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-06-22

Last updated on: 2026-06-22

Assigner: huntr.dev

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-06-22
Last Modified
2026-06-22
Generated
2026-07-13
AI Q&A
2026-06-22
EPSS Evaluated
2026-07-11
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
keras-team keras 3.14.0

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a path traversal issue in the keras-team/keras version 3.14.0, specifically in the DiskIOStore.make method used for saving and loading Keras models.

It occurs because user-provided layer names are used to build directory paths without properly sanitizing for parent directory components like ".." sequences.

Although forward slashes are restricted in layer names, directory traversal sequences are not, allowing an attacker to craft a malicious model that escapes the intended temporary directory.

This can lead to unauthorized file system operations such as creating directories or writing files in arbitrary locations.

Impact Analysis

This vulnerability can allow an attacker to perform unauthorized file system operations outside the intended directory.

Potential impacts include creating or modifying files and directories in arbitrary locations, which could lead to data corruption, unauthorized data access, or disruption of system operations.

Because the vulnerability requires user interaction (loading or saving a malicious model), it may be exploited in environments where untrusted models are used.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-12479. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart