{"id":"CVE-2026-0897","published":"2026-01-15T14:09:53Z","modified":"2026-07-15T01:23:41Z","title":"Denial of Service in Keras via Excessive Memory Allocation in HDF5 Metadata","vendor":"Google","product":"Keras","tier":"tail","description":{"text":"Allocation of Resources Without Limits or Throttling in the HDF5 weight loading component in Google Keras 3.0.0 through 3.13.0 on all platforms allows a remote attacker to cause a Denial of Service (DoS) through memory exhaustion and a crash of the Python interpreter via a crafted .keras archive containing a valid model.weights.h5 file whose dataset declares an extremely large shape.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0033,"percentile":0.26605,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/keras-team/keras/pull/21880","tags":[]},{"url":"https://access.redhat.com/security/cve/CVE-2026-0897","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2430027","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-0897.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:3782","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:3713","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:4271","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":15.3,"factors":[{"name":"EPSS percentile","points":5.32},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.97}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-03-29","earliestUrl":"https://github.com/HyperPS/CVE-2026-0897","repos":[{"name":"HyperPS/CVE-2026-0897","url":"https://github.com/HyperPS/CVE-2026-0897","stars":0,"created":"2026-03-29"}]},"first":{"date":"2026-03-29","source":"PoC-in-GitHub","url":"https://github.com/HyperPS/CVE-2026-0897"},"provenance":"source"},"vendorSlug":"google","affectedVersions":[{"vendor":"Google","product":"Keras","versions":[">= 3.0.0, <= 3.13.0"]}],"capec":[{"id":"CAPEC-197","name":"Exponential Data Expansion"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-01-15T16:31:40.866475Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"keras","vulnerableRanges":[">=3.0.0, <3.12.1",">=3.13.0, <3.13.2",">=3.0.0, <3.13.1"],"patched":["3.12.1","3.13.2","3.13.1"],"from":["GHSA-mgx6-5cf9-rr43","PYSEC-2026-73"],"provenance":"source"}],"summary":{"text":"A resource allocation flaw in the HDF5 weight loading component of Google Keras 3.0.0 through 3.13.0 lets a crafted .keras archive containing a valid model.weights.h5 file trigger excessive memory allocation. An attacker can crash the Python interpreter and cause denial of service remotely, but only if a user is induced to load the malicious archive, since no authentication is required and user interaction is needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:00:59Z"},"euvd":{"id":"EUVD-2026-2735","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-keras-team-keras-cve-2025-1550","children":[{"from":"CVE-2026-0897","to":"CVE-2026-12570","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"This issue bypasses the fix for CVE-2026-0897, which only addressed a similar vulnerability in KerasFileEditor.","from":"CVE.org","in":"CVE-2026-12570"},{"kind":"same-code","provenance":"machine","files":["keras/src/saving/saving_lib.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/4933ea4a5b3fcc24ceacdc276f5bb5dfbd06756c"],"basis":"shared file"}]},{"from":"CVE-2026-0897","to":"CVE-2026-1462","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:keras","fromFixed":"3.13.1","toFixed":"3.13.2","daysApart":88},{"kind":"same-code","provenance":"machine","files":["keras/src/export/tfsm_layer.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/b6773d3decaef1b05d8e794458e148cb362f163f"],"basis":"shared function","functions":["get_config"]}]},{"from":"CVE-2026-0897","to":"CVE-2026-1669","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:keras","fromFixed":"3.13.1","toFixed":"3.13.2","daysApart":27},{"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/8a37f9dadd8e23fa4ee3f537eeb6413e75d12553"],"basis":"shared function","functions":["__bool__","__len__","_load_state","_switch_h5_file","get"]},{"kind":"similar","provenance":"machine","score":0.53,"basis":"same product + description similarity"}]},{"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"]}]}],"packageHistory":[{"cve":"CVE-2025-9905","published":"2025-09-19","fixed":"3.11.3","kev":false},{"cve":"CVE-2025-12058","published":"2025-10-29","fixed":"3.12.0","kev":false},{"cve":"CVE-2025-12060","published":"2025-10-30","fixed":"3.12.0","kev":false,"link":{"from":"CVE-2025-12060","to":"CVE-2026-0897","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:keras","fromFixed":"3.12.0","toFixed":"3.12.1","daysApart":77},{"kind":"same-code","provenance":"machine","files":["keras/src/saving/saving_lib.py"],"commits":["https://github.com/keras-team/keras/commit/47fcb397ee4caffd5a75efd1fa3067559594e951","https://github.com/keras-team/keras/commit/7360d4f0d764fbb1fa9c6408fe53da41974dd4f6","https://github.com/keras-team/keras/commit/f704c887bf459b42769bfc8a9182f838009afddb"],"basis":"shared file"}]}},{"cve":"CVE-2026-0897","published":"2026-01-15","fixed":"3.13.2","kev":false},{"cve":"CVE-2026-1462","published":"2026-04-13","fixed":"3.13.2","kev":false},{"cve":"CVE-2026-1669","published":"2026-02-11","fixed":"3.13.2","kev":false},{"cve":"CVE-2026-11816","published":"2026-06-11","fixed":"3.14.0","kev":false}],"package":"PyPI:keras"}}