CVE-2026-12479
JSON

6.1medium

Path Traversal in keras-team/keras

Severity
6.1medium CVSS:3.0 by @huntr_ai
Exploit likelihood
0.36% (higher than 32% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
@huntr_ai
Also known as
GHSA-gh82-f9x8-5frxPYSEC-2026-3632

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.

Affected

Product or packageVersionsReported by
keras-team keras-team/kerasfrom unspecified up to latestCVE List
keras (PyPI)before 3.12.3, from 3.13.0 before 3.15.0GitHub Advisory Database, PyPA Advisory Database

All scores

@huntr_ai6.1medium CVSS:3.0CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
GitHub6.1medium CVSS:3.0CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
PyPA Advisory Database6.1medium CVSS:3.0CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L

Classification

CWE-22

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Una vulnerabilidad de salto de ruta existe en keras-team/keras versión 3.14.0, específicamente en el método ’DiskIOStore.make’ dentro de la biblioteca de guardado y carga de modelos de Keras 3. Esta vulnerabilidad surge del manejo inadecuado de los nombres de capa proporcionados por el usuario, que se utilizan para construir rutas de directorio sin sanear los componentes de directorio padre (’..’). Aunque las barras diagonales (’/’) están restringidas en los nombres de capa, las secuencias de salto de directorio no lo están. Esto permite a un atacante crear un modelo Keras malicioso que, cuando se guarda o se carga, puede escapar del directorio de trabajo temporal previsto y realizar operaciones no autorizadas en el sistema de archivos, como crear directorios o escribir archivos en ubicaciones arbitrarias.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-12479 changed 2026-06-22CVE Terms of Use
GitHub Advisory DatabaseGHSA-gh82-f9x8-5frx changed 2026-08-10CC-BY-4.0
NVDCVE-2026-12479 changed 2026-10-25Public domain
PyPA Advisory DatabasePYSEC-2026-3632 changed 2026-08-10CC-BY-4.0