{"cve":"CVE-2026-12570","nvd":{"published":"2026-08-10T07:16:44.370","modified":"2026-10-23T20:10:00.160","status":"Awaiting Analysis","description":"A vulnerability in keras-team/keras versions <= 3.15.0 allows for a denial of service (DoS) attack when loading malicious .keras model files via the keras.models.load_model() function. The H5IOStore.__getitem__ method in keras/src/saving/saving_lib.py does not validate the shape or size of datasets, leading to unbounded memory allocation. A specially crafted .keras file can exploit this flaw to trigger an out-of-memory (OOM) condition, causing the process to be terminated (exit code 137). This issue bypasses the fix for CVE-2026-0897, which only addressed a similar vulnerability in KerasFileEditor. The attack vector includes poisoned models from public repositories or malicious model registries, posing a risk to machine learning pipelines that process untrusted models.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5},"cwes":["CWE-770"],"references":["https://github.com/keras-team/keras/commit/4933ea4a5b3fcc24ceacdc276f5bb5dfbd06756c","https://huntr.com/bounties/a064f475-780a-409a-82f7-678512f27ad8","https://huntr.com/bounties/a064f475-780a-409a-82f7-678512f27ad8"],"products":[],"source":"nvd","synced_at":"2026-10-24T16:53:34.184483516+00:00"},"epss":{"cve":"CVE-2026-12570","score":0.0019,"percentile":0.08603,"date":"2026-10-26"},"kev":null,"osv":[{"id":"GHSA-74m6-m3xx-3vmj","url":"https://osv.dev/vulnerability/GHSA-74m6-m3xx-3vmj","summary":"Keras model loading is vulnerable to denial of service through HDF5 shape bombs","modified":"2026-09-10T12:25:26.313959426Z","packages":[{"ecosystem":"PyPI","name":"keras","purl":"pkg:pypi/keras","ranges":["<3.15.0"],"fixed":["3.15.0"]}]},{"id":"PYSEC-2026-3856","url":"https://osv.dev/vulnerability/PYSEC-2026-3856","summary":"Keras model loading is vulnerable to denial of service through HDF5 shape bombs","modified":"2026-09-10T12:15:06.946960903Z","packages":[{"ecosystem":"PyPI","name":"keras","purl":"pkg:pypi/keras","ranges":["<3.15.0"],"fixed":["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."]}