A AegiFlow
MEDIUMCVSS 6.1EPSS 0.4%

CVE-2026-12479

Keras: DiskIOStore permits path traversal through crafted layer names

Published
2026-06-22
Modified
2026-08-07
EPSS percentile
31%
Aliases
GHSA-gh82-f9x8-5frx
Sources
github-advisory

Summary

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.

Affected packages

EcosystemPackageAffected versionsFixed versions
PyPIkeras3.12.3, 3.15.0

Remediation: Upgrade to 3.12.3 or later.

References

Includes data from the GitHub Advisory Database, licensed under CC-BY 4.0.

CVE® is a registered trademark of The MITRE Corporation. CVE content reproduced under the CVE Terms of Use; copyright designation © MITRE.

EPSS scores provided by the FIRST.org Exploit Prediction Scoring System.