CVE-2026-12570
CVSS v3
5.5
MEDIUM
EPSS Score
0.1 %
exploit probability, as of 2026-10-17
CISA KEV
No
known exploited
Exploitation
—
SSVC status
Get an alert for each new CVE published for keras. Watch keras in CVE Watch Free account · no credit card
Affected and fixed versions
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- kerasPyPIall versions · fixed in 3.15.0
Vendor advisories
keras: Keras: Denial of Service via HDF5 Shape Bomb when loading malicious model files
rhoai/odh-kserve-agent-rhel9 as a component of Red Hat OpenShift AI (RHOAI) · rhoai/odh-kserve-controller-rhel9 as a component of Red Hat OpenShift AI (RHOAI) · rhoai/odh-kserve-router-rhel9 as a component of Red Hat OpenShift AI (RHOAI)
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.
Technical details
- CVSS v3 Vector
- CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- Published
- 2026-08-10
- Last Modified
- 2026-08-10
Frequently asked questions
What is CVE-2026-12570?
Is CVE-2026-12570 actively exploited?
What is the CVSS score for CVE-2026-12570?
Running keras? Hear about its next vulnerability
CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.
Already have an account? Open CVE WatchNo credit card required · 50 free checks/month · Free API key
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? CVE Watch alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.