Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. keras
  4. ›
  5. CVE-2026-12479

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

June 22, 2026 (updated August 7, 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.

References

  • github.com/advisories/GHSA-gh82-f9x8-5frx
  • github.com/keras-team/keras/commit/d8caeb58cc9e61ea092445dc7a20908ca8d693e2
  • github.com/keras-team/keras/pull/23017
  • github.com/keras-team/keras/releases/tag/v3.12.3
  • github.com/keras-team/keras/releases/tag/v3.15.0
  • huntr.com/bounties/188836b9-12fc-49c7-8dbf-04f60fe33743
  • nvd.nist.gov/vuln/detail/CVE-2026-12479

Code Behaviors & Features

Detect and mitigate CVE-2026-12479 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.12.3, all versions starting from 3.13.0 before 3.15.0

Fixed versions

  • 3.12.3
  • 3.15.0

Solution

Upgrade to versions 3.12.3, 3.15.0 or above.

Impact 6.1 MEDIUM

CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/keras/CVE-2026-12479.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:19:09 +0000.