CVE-2026-12570: CWE-770 Allocation of Resources Without Limits or Throttling in keras-team keras-team/keras
Keras versions up to 3.15.0 contain a vulnerability that allows denial of service (DoS) via loading malicious .keras model files. The issue arises from unvalidated dataset shapes and sizes during model loading, causing unbounded memory allocation and potential out-of-memory crashes. This vulnerability bypasses a previous fix and affects machine learning pipelines processing untrusted models.
AI Analysis
Technical Summary
CVE-2026-12570 is a resource exhaustion vulnerability in keras-team/keras (<= 3.15.0) where the H5IOStore.__getitem__ method in keras/src/saving/saving_lib.py does not validate the shape or size of datasets when loading .keras model files via keras.models.load_model(). This allows an attacker to craft malicious model files that cause unbounded memory allocation, leading to out-of-memory conditions and process termination (exit code 137). The flaw bypasses the prior fix for CVE-2026-0897, which addressed a similar issue in a different component. The attack vector includes poisoned models from public repositories or malicious model registries, posing a risk to ML pipelines that load untrusted models.
Potential Impact
Successful exploitation results in denial of service due to out-of-memory conditions causing the process to terminate unexpectedly. There is no impact on confidentiality or integrity reported. The vulnerability affects availability of the affected application when loading malicious model files.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid loading untrusted or unverified .keras model files to mitigate risk.
CVE-2026-12570: CWE-770 Allocation of Resources Without Limits or Throttling in keras-team keras-team/keras
Description
Keras versions up to 3.15.0 contain a vulnerability that allows denial of service (DoS) via loading malicious .keras model files. The issue arises from unvalidated dataset shapes and sizes during model loading, causing unbounded memory allocation and potential out-of-memory crashes. This vulnerability bypasses a previous fix and affects machine learning pipelines processing untrusted models.
CVSS v3.0
Score 5.5medium
Affected software
keras-team
keras-team/keras
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-12570 is a resource exhaustion vulnerability in keras-team/keras (<= 3.15.0) where the H5IOStore.__getitem__ method in keras/src/saving/saving_lib.py does not validate the shape or size of datasets when loading .keras model files via keras.models.load_model(). This allows an attacker to craft malicious model files that cause unbounded memory allocation, leading to out-of-memory conditions and process termination (exit code 137). The flaw bypasses the prior fix for CVE-2026-0897, which addressed a similar issue in a different component. The attack vector includes poisoned models from public repositories or malicious model registries, posing a risk to ML pipelines that load untrusted models.
Potential Impact
Successful exploitation results in denial of service due to out-of-memory conditions causing the process to terminate unexpectedly. There is no impact on confidentiality or integrity reported. The vulnerability affects availability of the affected application when loading malicious model files.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid loading untrusted or unverified .keras model files to mitigate risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- @huntr_ai
- Date Reserved
- 2026-06-18T01:55:25.311Z
- Cvss Version
- 3.0
- State
- PUBLISHED
Threat ID: 6a7972aabf8831d5392faf66
Added to database: 08/10/2026, 06:41:46 UTC
Last enriched: 08/17/2026, 15:36:04 UTC
Last updated: 09/24/2026, 01:47:40 UTC
Views: 56
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.