cve.bz

CVE-2026-0897 keras keras

7.1 highEPSS 0.3%Fix available

High (7.1) in keras keras. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in keras 3.12.1, 3.13.1, 3.13.2.

On this page
Allocation of Resources Without Limits or Throttling in the HDF5 weight loading component in Google Keras 3.0.0 through 3.13.0 on all platforms allows a remote attacker to cause a Denial of Service (DoS) through memory exhaustion and a crash of the Python interpreter via a crafted .keras archive containing a valid model.weights.h5 file whose dataset declares an extremely large shape.

Severity

CVSS 4.0

7.1 high
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

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 27th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-01-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-770 Allocation of Resources Without Limits or Throttling
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-0897 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-0897?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-0897?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-0897 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Google Kerasfrom 3.0.0 through 3.13.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-mgx6-5cf9-rr43PyPIkeras>=3.0.0 <3.12.13.12.1
GHSA-mgx6-5cf9-rr43PyPIkeras>=3.13.0 <3.13.23.13.2
PYSEC-2026-73PyPIkeras>=3.0.0 <3.13.13.13.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11kerasno fix listedDEBIAN-CVE-2026-0897
Ubuntu18.04:LTS, 20.04:LTSkerasno fix listedUBUNTU-CVE-2026-0897
Azure Linux3keras3.3.3-6AZL-74631

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated Important for Red Hat OpenShift AI. A remote attacker can cause a Denial of Service (DoS) by providing a crafted `.keras` archive with an excessively large dataset shape, leading to memory exhaustion. This impacts Red Hat OpenShift AI components that utilize Keras for model handling.

Red Hat's mitigation

To mitigate this issue, avoid loading Keras model archives from untrusted sources. If processing untrusted Keras model archives is unavoidable, ensure they are processed within an isolated and resource-constrained environment to limit the impact of potential memory exhaustion attacks.

ProductPackageStateAdvisory
Red Hat OpenShift AI 2.25rhoai/odh-modelmesh-runtime-adapter-rhel9:1772094445Fixed 2026-03-04RHSA-2026:3782
Red Hat OpenShift AI 2.25rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9:1772093304Fixed 2026-03-04RHSA-2026:3782
Red Hat OpenShift AI 2.25rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9:1772093283Fixed 2026-03-04RHSA-2026:3782
Red Hat OpenShift AI 2.25rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9:1772093300Fixed 2026-03-04RHSA-2026:3782
Red Hat OpenShift AI 2.25rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9:1772093272Fixed 2026-03-04RHSA-2026:3782
Red Hat OpenShift AI 3.3rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9:1771502897Fixed 2026-03-04RHSA-2026:3713
Red Hat OpenShift AI 3.3rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9:1771502844Fixed 2026-03-04RHSA-2026:3713
Red Hat OpenShift AI 3.3rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9:1771502910Fixed 2026-03-04RHSA-2026:3713
Red Hat OpenShift AI 3.3rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9:1771502884Fixed 2026-03-04RHSA-2026:3713
Red Hat Trusted Artifact Signer 1.3rhtas/model-transparency-rhel9:1772614635Fixed 2026-03-11RHSA-2026:4271
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-agent-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-controller-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-router-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-storage-initializer-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-modelmesh-runtime-adapter-rhel8Affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-0897.

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

  • HyperPS/CVE-2026-0897 0 stars, created
    Allocation of Resources Without Limits or Throttling in the HDF5 weight loading component in Google Keras 3.0.0 through 3.13.0 on all platf…

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-770 (20).

References

Check your stackJSON