Skip to content
KerasGHSA-gh82-f9x8-5frx

Keras: DiskIOStore permits path traversal through crafted layer names

Medium6.1CVE-2026-12479 · Published Jun 22, 2026 · updated Aug 10, 2026

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.

GitHub advisory

Affected versions

PackageAffectedFixed in
keras
PyPI
< 3.12.33.12.3
>= 3.13.0, < 3.15.03.15.0
Details and references

More Keras advisories

All Keras
Advisory
Keras: HDF5 links can disclose local file contents
Medium6.5Aug 2
Keras: TorchModuleWrapper can deserialize unsafe PyTorch pickle data
High7.8Jul 19
Keras: tar extraction permits symlink-based path traversal
Low3.1Jul 14
Keras: Lambda deserialization can bypass safe mode and execute code
High8.8Jul 3
Keras: HDF5 virtual datasets can disclose local files
Medium5.5Jul 1
Keras archive extraction utilities allow path traversal and arbitrary file writes
High8.1Jun 11

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.