{"cve":"CVE-2026-9335","nvd":{"published":"2026-08-02T05:16:20.827","modified":"2026-10-23T22:10:00.160","status":"Awaiting Analysis","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","score":6.5},"cwes":["CWE-22"],"references":["https://github.com/keras-team/keras/commit/23370f16b0ab9a200f7550a34e54a3ceab74ba0e","https://huntr.com/bounties/876a7226-5428-4a66-9d05-232461120db5"],"products":[],"source":"nvd","synced_at":"2026-10-24T16:53:34.184483516+00:00"},"epss":{"cve":"CVE-2026-9335","score":0.00767,"percentile":0.55247,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-m8wh-29wm-52mv","url":"https://osv.dev/vulnerability/GHSA-m8wh-29wm-52mv","summary":"Keras: HDF5 links can disclose local file contents","modified":"2026-08-10T11:40:47.503642575Z","packages":[{"ecosystem":"PyPI","name":"keras","purl":"pkg:pypi/keras","ranges":["<3.12.3"],"fixed":["3.12.3"]},{"ecosystem":"PyPI","name":"keras","purl":"pkg:pypi/keras","ranges":[">=3.13.0 <3.15.0"],"fixed":["3.15.0"]}]},{"id":"PYSEC-2026-3633","url":"https://osv.dev/vulnerability/PYSEC-2026-3633","summary":"Keras: HDF5 links can disclose local file contents","modified":"2026-08-10T11:30:12.784432347Z","packages":[{"ecosystem":"PyPI","name":"keras","purl":"pkg:pypi/keras","ranges":["<3.12.3",">=3.13.0 <3.15.0"],"fixed":["3.12.3","3.15.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}