CVE-2026-12479keras-team/keras
Medium 6.1
Follow: this CVE · keras-team · keras-team/keras We alert you by email or Slack (account required).
- Priority
- 37
- CVSS 3.0
- 6.1
- EPSS
- —
- Auth required
- Yes
- Published
- Jun 22, 2026
- Updated
- Oct 25, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
What happens
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
- Apply the vendor's security update for keras-team/keras.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | keras |
< 3.12.3 |
3.12.3 |
pip install "keras>=3.12.3" |
| PyPI | keras |
≥ 3.13.0 < 3.15.0 |
3.15.0 |
pip install "keras>=3.15.0" |
| PyPI | keras |
< 3.12.3 |
3.12.3 |
pip install "keras>=3.12.3" |
| PyPI | keras |
≥ 3.13.0 < 3.15.0 |
3.15.0 |
pip install "keras>=3.15.0" |
Per OSV / GitHub Advisories (GHSA-gh82-f9x8-5frx, PYSEC-2026-3632). Check the version in your lockfile before upgrading.
Affected products
- keras-team · keras-team/keras
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.