Path Traversal in keras-team/keras (keras-team keras-team/keras)

CVE-2026-12479
MEDIUM 6.1

At a glance

Source
NVD
EPSS
EPSS 0.36 % · percentile 30 ()
State
PUBLISHED
Published
Updated
Assigner
@huntr_ai
NVD status
Deferred

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.

Weaknesses (CWE)

  • CWE-22 — Improper Limitation of a Pathname to a Restricted Directory

References

Scores

VersionScoreVectorScored by
CVSS 3.0MEDIUM 6.1CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L@huntr_ai
CVSS 3.0MEDIUM 6.1CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:LNVD · security@huntr.dev (Secondary)

Advisories

European references

Affected products

ProductVersions
keras-team · keras-team/kerasaffected unspecified ≤ latest

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD