CVE-2026-0897CWE-770

Denial of Service in Keras via Excessive Memory Allocation in HDF5 Metadata

High · published January 15, 2026

CVSS v4.0
7.1
EPSS
0%
Percentile
24.8
In the wild
Unconfirmed
What it is

⚡ A sneaky flaw in Keras allows attackers to crash your Python interpreter with a single crafted `.keras` archive file! 📉 Think of this vulnerability like a restaurant with no reservation limits — an unexpected flood of diners can overwhelm the staff and lead to chaos in the kitchen. In this case, a remote attacker can send a file that declares an impossibly large shape, consuming all the memory resources. This could lead to a Denial of Service (DoS) attack where your application crashes, leaving you and your users locked out in the cold. Imagine your well-cooked meal turned to ash! Anyone relying on Google Keras 3.0.0 through 3.13.0 is at risk of unexpected downtime and data loss.

Put simply

Think of this vulnerability like a restaurant with no reservation limits — an unexpected flood of diners can overwhelm the staff and lead to chaos in the kitchen. In this case, a remote attacker can send a file that declares an impossibly large shape, consuming all the memory resources. This vulnerability arises from the allocation of resources without proper limits or throttling in the HDF5 weight loading component. A crafted `.keras` archive file containing a model with a massive shape can exhaust memory and crash the Python interpreter, causing application outages.

What to do

This could lead to a Denial of Service (DoS) attack where your application crashes, leaving you and your users locked out in the cold. Imagine your well-cooked meal turned to ash! Anyone relying on Google Keras 3.0.0 through 3.13.0 is at risk of unexpected downtime and data loss. To mitigate this issue, upgrade your Google Keras to version 3.13.1 or later, where this flaw has been addressed. Additionally, implement memory usage monitoring to detect abnormal spikes in resource consumption. Regularly audit your dependencies to stay secure! You've got this! With these steps, you can safeguard your applications from crashing and keep your users happy! 🛡️

The record
Technical detail
CVSS v4.0
7.1 · HIGH
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
EPSS
0.00330 · 24.8th percentile
Weakness
CWE-770 · Allocation of Resources Without Limits or Throttling
Published
2026-01-15T14:09Z
EPSS history
Timeline
  • 15 JAN 14:09Z
    Denial of Service in Keras via Excessive Memory Allocation in HDF5 Metadata
    cvelistv5