{"id":"CVE-2026-12480","published":"2026-07-01T16:53:32Z","modified":"2026-07-01T17:46:31Z","title":"Arbitrary HDF5 File Read via Virtual Dataset Bypass in keras-team/keras","vendor":"keras-team","product":"keras-team/keras","tier":"tail","description":{"text":"Keras versions up to and including 3.13.2 are vulnerable to an arbitrary HDF5 file read due to an incomplete fix for CVE-2026-1669. The vulnerability resides in the `H5IOStore._verify_dataset()` and `file_editor.py` methods, which fail to check the `dataset.is_virtual` property of HDF5 datasets. This allows an attacker to craft a malicious `.keras` model archive or `.h5` weights file containing a Virtual Dataset (VDS) that references external HDF5 files on the victim's filesystem. When the victim loads the model using `keras.models.load_model()` or `keras.saving.load_model()`, the external file is transparently read, leading to potential information disclosure. Fixed in versions 3.12.2 and 3.14.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0019,"percentile":0.08869,"provenance":"source"},"cwes":[{"id":"CWE-73","name":"External Control of File Name or Path"}],"references":[{"url":"https://huntr.com/bounties/1875d257-5b03-4a69-ac70-e98653fa12c7","tags":[]},{"url":"https://github.com/keras-team/keras/commit/d5a88bdb137c0d3039b8f4bbbe8c7099925cc10c","tags":[]}],"priority":{"score":5.6,"factors":[{"name":"EPSS percentile","points":1.77},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"keras-team","affectedVersions":[{"vendor":"keras-team","product":"keras-team/keras","versions":[">= unspecified, < 3.12.2, 3.14.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-01T17:46:27.752463Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"keras","vulnerableRanges":["<3.12.3",">=3.13.0, <3.15.0"],"patched":["3.12.3","3.15.0"],"from":["GHSA-26c4-7vv6-867j","PYSEC-2026-3629"],"provenance":"source"}],"summary":{"text":"Keras versions up to and including 3.13.2 contain an arbitrary HDF5 file read flaw in the H5IOStore._verify_dataset() and file_editor.py components, which fail to check whether HDF5 datasets are virtual. An attacker who can get a victim to load a crafted .keras or .h5 file, through a local file on the victim's system with user interaction to open it, can make the victim's model loader transparently read external HDF5 files from the victim's filesystem, leading to information disclosure.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:19:45Z"},"euvd":{"id":"EUVD-2026-41090","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-keras-team-keras-cve-2025-1550","parents":[{"from":"CVE-2026-1669","to":"CVE-2026-12480","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"Keras versions up to and including 3.13.2 are vulnerable to an arbitrary HDF5 file read due to an incomplete fix for CVE-2026-1669.","from":"CVE.org","in":"CVE-2026-12480"},{"kind":"same-code","provenance":"machine","files":["keras/src/saving/file_editor.py"],"commits":["https://github.com/keras-team/keras/commit/d5a88bdb137c0d3039b8f4bbbe8c7099925cc10c","https://github.com/keras-team/keras/commit/8f987f11bf7512f0df4774a8f1557bba07dc2b49","https://github.com/keras-team/keras/commit/8a37f9dadd8e23fa4ee3f537eeb6413e75d12553"],"basis":"shared function","functions":["__bool__","get"]},{"kind":"similar","provenance":"machine","score":0.37,"basis":"same package + description similarity"}]},{"from":"CVE-2025-1550","to":"CVE-2026-12480","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["keras/src/models/functional.py"],"commits":["https://github.com/keras-team/keras/commit/e67ac8ffd0c883bec68eb65bb52340c7f9d3a903","https://github.com/keras-team/keras/commit/d5a88bdb137c0d3039b8f4bbbe8c7099925cc10c","https://github.com/keras-team/keras/commit/8f987f11bf7512f0df4774a8f1557bba07dc2b49"],"basis":"shared function","functions":["process_layer"]}]},{"from":"CVE-2025-8747","to":"CVE-2026-12480","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["keras/src/legacy/saving/legacy_h5_format.py"],"commits":["https://github.com/keras-team/keras/commit/713172ab56b864e59e2aa79b1a51b0e728bba858","https://github.com/keras-team/keras/commit/d5a88bdb137c0d3039b8f4bbbe8c7099925cc10c","https://github.com/keras-team/keras/commit/8f987f11bf7512f0df4774a8f1557bba07dc2b49"],"basis":"shared function","functions":["load_model_from_hdf5","save_optimizer_weights_to_hdf5_group"]}]},{"from":"CVE-2025-9906","to":"CVE-2026-12480","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["keras/src/legacy/saving/legacy_h5_format.py"],"commits":["https://github.com/keras-team/keras/commit/713172ab56b864e59e2aa79b1a51b0e728bba858","https://github.com/keras-team/keras/commit/d5a88bdb137c0d3039b8f4bbbe8c7099925cc10c","https://github.com/keras-team/keras/commit/8f987f11bf7512f0df4774a8f1557bba07dc2b49"],"basis":"shared function","functions":["load_model_from_hdf5","save_optimizer_weights_to_hdf5_group"]}]},{"from":"CVE-2026-0897","to":"CVE-2026-12480","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["keras/src/saving/file_editor.py"],"commits":["https://github.com/keras-team/keras/commit/7360d4f0d764fbb1fa9c6408fe53da41974dd4f6","https://github.com/keras-team/keras/commit/f704c887bf459b42769bfc8a9182f838009afddb","https://github.com/keras-team/keras/commit/d5a88bdb137c0d3039b8f4bbbe8c7099925cc10c","https://github.com/keras-team/keras/commit/8f987f11bf7512f0df4774a8f1557bba07dc2b49"],"basis":"shared function","functions":["__bool__","get"]}]},{"from":"CVE-2026-11816","to":"CVE-2026-12480","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["keras/src/utils/file_utils.py"],"commits":["https://github.com/keras-team/keras/commit/2465b6657b02c8eed308759b7e800e295ae01888","https://github.com/keras-team/keras/commit/d5a88bdb137c0d3039b8f4bbbe8c7099925cc10c","https://github.com/keras-team/keras/commit/8f987f11bf7512f0df4774a8f1557bba07dc2b49"],"basis":"shared function","functions":["extract_open_archive","filter_safe_zipinfos","makedirs"]}]}]}}