Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.1%top 97%

CVE-2026-12570: CWE-770 Allocation of Resources Without Limits or Throttling in keras-team keras-team/keras

0
Medium
VulnerabilityCVE-2026-12570cvecve-2026-12570cwe-770
Published: 08/10/2026 (08/10/2026, 06:29:56 UTC)
Source: CVE Database V5
Vendor/Project: keras-team
Product: keras-team/keras

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 v3.0

Score 5.5medium

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Affected software

keras
pkg:pypi/keras
Affected versions
<=3.15.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/10/2026, 07:33:41 UTC

Technical Analysis

CVE-2026-12570 is a resource exhaustion vulnerability (CWE-770) in keras-team/keras versions up to 3.15.0. The flaw exists in the keras.models.load_model() function, specifically in the H5IOStore.__getitem__ method within keras/src/saving/saving_lib.py, which does not validate the shape or size of datasets when loading .keras files. An attacker can craft a malicious .keras model file that triggers unbounded memory allocation, causing an out-of-memory (OOM) condition and process termination (exit code 137). This vulnerability bypasses the previous fix for CVE-2026-0897 and poses a risk when loading models from untrusted sources such as public repositories or model registries.

Potential Impact

Successful exploitation results in denial of service due to out-of-memory conditions causing the Keras process to terminate unexpectedly. There is no impact on confidentiality or integrity, only availability is affected.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid loading .keras model files from untrusted or unverified sources to mitigate risk.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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
Remediation Level
null

Threat ID: 6a7972aabf8831d5392faf66

Added to database: 08/10/2026, 06:41:46 UTC

Last enriched: 08/10/2026, 07:33:41 UTC

Last updated: 08/11/2026, 03:40:59 UTC

Views: 8

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses