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

- Severity: Medium 6.1 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 32% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-22T15:21:19.645Z
- Modified: 2026-10-25T23:10:00.167Z
- Also known as: GHSA-gh82-f9x8-5frx, PYSEC-2026-3632
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntr_ai

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

(As written by CVE List.)

## Affected

- keras-team keras-team/keras: from unspecified up to latest
- keras (PyPI): before 3.12.3; from 3.13.0 before 3.15.0

## Every score

- @huntr_ai: CVSS:3.0 6.1 Medium `CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L`
- GitHub: CVSS:3.0 6.1 Medium `CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L`
- PyPA Advisory Database: CVSS:3.0 6.1 Medium `CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L`

## References

- <https://huntr.com/bounties/188836b9-12fc-49c7-8dbf-04f60fe33743> (exploit, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-12479> (advisory)
- <https://github.com/keras-team/keras/pull/23017> (web)
- <https://github.com/keras-team/keras/commit/d8caeb58cc9e61ea092445dc7a20908ca8d693e2> (web)
- <https://github.com/keras-team/keras> (package)
- <https://github.com/keras-team/keras/releases/tag/v3.12.3> (web)
- <https://github.com/keras-team/keras/releases/tag/v3.15.0> (web)
- <https://pypi.org/project/keras> (package)
- <https://github.com/advisories/GHSA-gh82-f9x8-5frx> (advisory)

## Sources

- CVE List: [CVE-2026-12479](https://www.cve.org/CVERecord?id=CVE-2026-12479), CVE Terms of Use, modified 2026-06-22
- GitHub Advisory Database: [GHSA-gh82-f9x8-5frx](https://github.com/advisories/GHSA-gh82-f9x8-5frx), CC-BY-4.0, modified 2026-08-10
- NVD: [CVE-2026-12479](https://nvd.nist.gov/vuln/detail/CVE-2026-12479), Public domain, modified 2026-10-25
- PyPA Advisory Database: [PYSEC-2026-3632](https://osv.dev/vulnerability/PYSEC-2026-3632), CC-BY-4.0, modified 2026-08-10

---

Page: https://cve.day/CVE-2026-12479 · Whole record: https://cve.day/CVE-2026-12479.json · Rebuilt by cve.day 2026-11-25T22:59:25.364Z
