{"id":"CVE-2026-12480","state":"PUBLISHED","title":"Arbitrary HDF5 File Read via Virtual Dataset Bypass in keras-team/keras","description":"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.","publishedAt":"2026-07-01T16:53:32.326Z","updatedAt":"2026-07-01T17:46:31.093Z","severity":{"score":5.5,"label":"Medium","version":"3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","source":"@huntr_ai"},"assigner":"@huntr_ai","products":["keras-team keras-team/keras"],"affected":[{"vendor":"keras-team","product":"keras-team/keras","versions":[{"version":"unspecified","status":"affected","lessThan":"3.12.2, 3.14.1","versionType":"custom"}]}],"references":["https://huntr.com/bounties/1875d257-5b03-4a69-ac70-e98653fa12c7","https://github.com/keras-team/keras/commit/d5a88bdb137c0d3039b8f4bbbe8c7099925cc10c"],"weaknesses":["CWE-73"],"ingestedAt":"2026-10-29T20:10:52.580Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/12xxx/CVE-2026-12480.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-12480","state":"PUBLISHED","datePublished":"2026-07-01T16:53:32.326Z","dateUpdated":"2026-07-01T17:46:31.093Z","assignerShortName":"@huntr_ai","assignerOrgId":"c09c270a-b464-47c1-9133-acb35b22c19a","dateReserved":"2026-06-17T00:57:28.799Z"},"containers":{"cna":{"title":"Arbitrary HDF5 File Read via Virtual Dataset Bypass in keras-team/keras","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"keras-team","product":"keras-team/keras","versions":[{"version":"unspecified","status":"affected","lessThan":"3.12.2, 3.14.1","versionType":"custom"}]}],"references":[{"url":"https://huntr.com/bounties/1875d257-5b03-4a69-ac70-e98653fa12c7"},{"url":"https://github.com/keras-team/keras/commit/d5a88bdb137c0d3039b8f4bbbe8c7099925cc10c"}],"metrics":[{"cvssV3_0":{"version":"3.0","attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"NONE","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","baseScore":5.5,"baseSeverity":"MEDIUM"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-73","type":"CWE","lang":"en","description":"CWE-73 External Control of File Name or Path"}]}],"providerMetadata":{"shortName":"@huntr_ai","orgId":"c09c270a-b464-47c1-9133-acb35b22c19a","dateUpdated":"2026-07-01T16:53:32.326Z"},"source":{"advisory":"1875d257-5b03-4a69-ac70-e98653fa12c7","discovery":"EXTERNAL"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://huntr.com/bounties/1875d257-5b03-4a69-ac70-e98653fa12c7","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-01T17:46:27.752463Z","id":"CVE-2026-12480","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-01T17:46:31.093Z"}}]}}}