patchminder
Proof of concept · GitHub CVE-2026-9335

Path traversalin Keras-team Keras.

Published 2 Aug 2026 · Updated 3 Aug 2026 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
Medium 6.5
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.0 · no login needed
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.7% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 3.12.3, 3.15.0
In plain words

A vulnerability in keras-team/keras versions <= 3.14.0 allows arbitrary local HDF5 file content disclosure due to improper handling of HDF5 ExternalLinks. The `KerasFileEditor` and `keras.saving.load_weights` functions bypass the `safe_get_h5_group` and `safe_get_h5_dataset` helpers, which are designed to reject ExternalLinks and SoftLinks. This results in automatic dereferencing of links to external HDF5 files, enabling attackers to disclose sensitive data from the victim's local filesystem. Specifically, `KerasFileEditor` extracts attributes and datasets from linked files into its internal structures, while `keras.saving.load_weights` loads weights from linked files into the user's model. This issue can be exploited by providing a malicious `.h5`, `.weights.h5`, or `.keras` file containing ExternalLinks.

What to do now
  • Upgrade keras (PyPI) to 3.12.3, 3.15.0 or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
keras-team/keras
Not confirmed
Not confirmed
CVE record
keras (PyPI)
before 3.12.3
3.12.3
GitHub advisory
keras (PyPI)
3.13.0 to before 3.15.0
3.15.0
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 22 May 2026
    CVE ID reserved by @huntr_ai.
  2. 2 Aug 2026
    Published in the CVE List.
  3. 3 Aug 2026
    CVE record last updated.
  4. 2 Sep 2026
    First public proof of concept on GitHub.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
1 repository
GitHubno warning signs foundpaparojonathan/CVE-2026-9335-keras-hdf5-externallink0 stars · created 2 Sep 2026CVE-2026-9335: KerasFileEditor and load_weights follow h5py ExternalLinks, disclosing arbitrary local HDF5 file contents in keras ≤ 3.14.0. Advisory + verified PoCs.

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other Keras vulnerabilities

Same weakness: Path traversal

All CWE-22 vulnerabilities

References
Cite this page

Patchminder. CVE-2026-9335: Path traversal in Keras-team Keras. https://patchminder.com/cve/cve-2026-9335/ (accessed 5 December 2026).