CVE-2026-9335 json
Improper Handling of HDF5 ExternalLinks in keras-team/keras
published 2026-08-02 3 mo ago modified 2026-10-23 16 d ago also GHSA-m8wh-29wm-52mv , PYSEC-2026-3633 , EUVD-2026-51922
- cvss
- 6.5
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 55%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi keras 3.12.3, 3.15.0
- keras-team keras-team/keras 3.12.3, 3.15.0
- github.com/keras-team/keras@23370f1 commit
- github.com/keras-team/keras@d338a45 commit
- github.com/keras-team/keras#22899 pull request
- github.com/keras-team/keras#23165 pull request
- github.com/keras-team/keras/releases/tag/v3.12.3 release
- github.com/keras-team/keras/releases/tag/v3.15.0 release
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-9335 updated cvss 5.0
keras: Keras: Information disclosure via improper handling of HDF5 ExternalLinks
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 3 mo ago
Exploit prediction
0.77% chance of exploitation in the next 30 days, higher than 55% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 6.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
| GitHub | 3.0 | 6.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
| OSV | 3.0 | 6.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | keras | <3.12.3 >=3.13.0, <3.15.0 |
3.12.3 3.15.0 |
Affected products
- keras-team keras-team/keras
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/keras-team/keras/commit/23370f16b0ab9a200f7550a34e54a3ceab74ba0e
web
-
github.com
/keras-team/keras/pull/22899
web
-
github.com
/keras-team/keras/pull/23165
web
-
github.com
/keras-team/keras/commit/d338a45204bdc787c8b3c4a9b82c1911cd52dedf
web
-
huntr.com
/bounties/876a7226-5428-4a66-9d05-232461120db5
web
-
nvd.nist.gov
/vuln/detail/CVE-2026-9335
advisory
-
github.com
/keras-team/keras
package
-
github.com
/keras-team/keras/releases/tag/v3.12.3
web
-
github.com
/keras-team/keras/releases/tag/v3.15.0
web
-
pypi.org
/project/keras
package
-
github.com
/advisories/GHSA-m8wh-29wm-52mv
advisory
Sources
- CVE List CVE-2026-9335
- GitHub Advisory GHSA-m8wh-29wm-52mv
- NVD CVE-2026-9335
- OSV PYSEC-2026-3633
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.