Directory Traversal Affecting py3.11-keras package, versions <3.15.0-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.38% (31st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-MINIMOSLATEST-PY311KERAS-18598498
  • published9 Aug 2026
  • disclosed22 Jun 2026

Introduced: 22 Jun 2026

CVE-2026-12479  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade Minimos:latest py3.11-keras to version 3.15.0-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream py3.11-keras package and not the py3.11-keras package as distributed by Minimos. See How to fix? for Minimos:latest relevant fixed versions and status.

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.