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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.1, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-22 · Modified: 2026-06-22
- Aliases: GHSA-gh82-f9x8-5frx, PYSEC-2026-3632, UBUNTU-CVE-2026-12479, DEBIAN-CVE-2026-12479
- Record: https://cvemate.com/vulnerability/CVE-2026-12479 · JSON: https://cvemate.com/vulnerability/CVE-2026-12479/json

## Description

```text
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.
```

## Signals

- CVSS: 6.1 medium (v3.0, CVE.org) CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
- EPSS: 0.362%, percentile 32.002%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian keras (Debian): All versions (No fix recorded)
- ubuntu keras (Ubuntu): All versions (No fix recorded)
- keras-team keras-team/keras: ≥ unspecified, ≤ latest
- PyPI keras (PyPI): \< 3.12.3 \| ≥ 3.13.0, \< 3.15.0

## References

- <https://huntr.com/bounties/188836b9-12fc-49c7-8dbf-04f60fe33743>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-12479>
- <https://github.com/keras-team/keras/pull/23017>
- <https://github.com/keras-team/keras/commit/d8caeb58cc9e61ea092445dc7a20908ca8d693e2>
- <https://github.com/keras-team/keras>
- <https://github.com/keras-team/keras/releases/tag/v3.12.3>
- <https://github.com/keras-team/keras/releases/tag/v3.15.0>
- <https://pypi.org/project/keras>
- <https://github.com/advisories/GHSA-gh82-f9x8-5frx>
- <https://ubuntu.com/security/CVE-2026-12479>
- <https://www.cve.org/CVERecord?id=CVE-2026-12479>
- <https://security-tracker.debian.org/tracker/CVE-2026-12479>

---

Data as of 2026-12-05T03:01:20.608Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
