NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · PyPI

CVE-2026-12479: Keras: DiskIOStore permits path traversal through crafted layer names

mediumCVSS 3.0 6.1GHSA-gh82-f9x8-5frx

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 (..).

Published Jun 22, 2026 · Updated Aug 7, 2026

Affected packages

keras

Ecosystem
PyPI
Affected
< 3.12.3
Fixed in
3.12.3
Check
pip show keras

keras

Ecosystem
PyPI
Affected
>= 3.13.0, < 3.15.0
Fixed in
3.15.0
Check
pip show keras

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More PyPI vulnerabilities

All PyPI entries