{"answers":{"affected":"5 open source packages ship an affected version, including keras. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-0897 in the wild and no public exploit code.","fix":"Upgrade keras to a fixed version for your release line: 3.12.1, 3.13.1 or 3.13.2.","what":"CVE-2026-0897 is a high-severity denial of service vulnerability in Google Keras, published on 15 Jan 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-0897 and fix it if it is affected.\n\nWhat it is: CVE-2026-0897 is a high-severity denial of service vulnerability in Google Keras, published on 15 Jan 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-0897 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- keras (PyPI): affected from 3.0.0; fixed in 3.12.1\n- keras (PyPI): affected from 3.0.0; fixed in 3.12.1\n- keras (PyPI): affected from 3.0.0; fixed in 3.13.1\n- keras (PyPI): affected from 3.13.0; fixed in 3.13.2\n- keras (PyPI): affected from 3.13.0; fixed in 3.13.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-0897/ (Markdown: https://insights.sbomify.com/CVE-2026-0897/index.md)","id":"CVE-2026-0897","markdown":"https://insights.sbomify.com/CVE-2026-0897/index.md","name":"CVE-2026-0897","record":{"aliases":["AZL-74631","DEBIAN-CVE-2026-0897","GHSA-mgx6-5cf9-rr43","MINI-h5jp-w9f3-8f63","PYSEC-2026-73","UBUNTU-CVE-2026-0897"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Keras deep learning library","requires_auth":"none","summary":"A remote attacker can cause a denial of service via memory exhaustion by providing a crafted Keras archive with an excessively large HDF5 dataset shape.","user_interaction":"required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Google","cpe":[{"product":"keras","vendor":"keras"}],"cvss":{"score":7.1,"severity":"high","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"description":"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":"2026-03-29","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-03-29T08:44:34Z","kind":"github_poc","ref":"https://github.com/HyperPS/CVE-2026-0897","stars":0,"title":"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 "}],"tier":"poc_unverified"},"has_fix":true,"headline":"Denial of Service in Keras via Excessive Memory Allocation in HDF5 Metadata","id":"CVE-2026-0897","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":5,"n_references":1,"next":{"headline":"File upload in Pega Robot Studio","id":"CVE-2026-0898"},"packages":[{"ecosystem":"PyPI","fixed":["3.12.1"],"introduced":["3.0.0"],"last_affected":[],"package":"keras","purl":null,"source":"GHSA-mgx6-5cf9-rr43"},{"ecosystem":"PyPI","fixed":["3.12.1"],"introduced":["3.0.0"],"last_affected":[],"package":"keras","purl":"pkg:pypi/keras","source":"GHSA-mgx6-5cf9-rr43"},{"ecosystem":"PyPI","fixed":["3.13.1"],"introduced":["3.0.0"],"last_affected":[],"package":"keras","purl":"pkg:pypi/keras","source":"PYSEC-2026-73"},{"ecosystem":"PyPI","fixed":["3.13.2"],"introduced":["3.13.0"],"last_affected":[],"package":"keras","purl":null,"source":"GHSA-mgx6-5cf9-rr43"},{"ecosystem":"PyPI","fixed":["3.13.2"],"introduced":["3.13.0"],"last_affected":[],"package":"keras","purl":"pkg:pypi/keras","source":"GHSA-mgx6-5cf9-rr43"}],"prev":{"headline":"Insecure Deserialization in extension \"Mailqueue\" (mailqueue)","id":"CVE-2026-0895"},"products":["Keras"],"published":"2026-01-15","related":[{"cvss_score":9.8,"headline":"Arbitrary code injection vulnerability in Keras framework \u003c 2.13","id":"CVE-2024-3660","kev_date_added":null,"published":"2024-04-16"},{"cvss_score":8.8,"headline":"Deserialization of Untrusted Data in keras-team/keras","id":"CVE-2026-12481","kev_date_added":null,"published":"2026-07-03"},{"cvss_score":8.8,"headline":"Safe Mode Bypass in keras-team/keras","id":"CVE-2026-1462","kev_date_added":null,"published":"2026-04-13"},{"cvss_score":8.6,"headline":"Arbitrary Code execution in Keras Safe Mode","id":"CVE-2025-9906","kev_date_added":null,"published":"2025-09-19"},{"cvss_score":8.6,"headline":"Keras safe_mode bypass allows arbitrary code execution when loading a malicious model.","id":"CVE-2025-8747","kev_date_added":null,"published":"2025-08-11"},{"cvss_score":8.1,"headline":"Path Traversal in keras-team/keras","id":"CVE-2026-11816","kev_date_added":null,"published":"2026-06-11"},{"cvss_score":7.3,"headline":"Arbitary Code execution in Keras load_model()","id":"CVE-2025-9905","kev_date_added":null,"published":"2025-09-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-15","vendors":["Google"]},"summary":"A remote attacker can cause a denial of service via memory exhaustion by providing a crafted Keras archive with an excessively large HDF5 dataset shape.","url":"https://insights.sbomify.com/CVE-2026-0897/"}