GHSA-xfhx-r7ww-5995: Duplicate Advisory Remote Code Execution Vulnerability
HIGHGHSA-xfhx-r7ww-5995 is a HIGH remote code execution vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Duplicate Advisory libraries in the PyPI ecosystem. The issue involves google keras allocates resources without limits or throttling in the hdf5 weight loading component. Remediation is available by upgrading affected packages to version 3.12.1, 3.13.2.
GHSA-xfhx-r7ww-5995 at a Glance
How to Fix GHSA-xfhx-r7ww-5995
To remediate this vulnerability, upgrade all affected Duplicate Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install keras>=3.12.1
pip install keras>=3.13.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show keras
How to Check if You Are Affected
To determine whether your Python environment is affected by GHSA-xfhx-r7ww-5995, inspect your installed packages using pip:
pip show keras
Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.12.1), your application is affected.
Note: The pip show keras command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Duplicate Advisory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-xfhx-r7ww-5995 Affected Duplicate Advisory Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
keras
|
PyPI |
≥ 3.0.0
< 3.12.1
|
3.12.1
|
|
keras
|
PyPI |
≥ 3.13.0
< 3.13.2
|
3.13.2
|
References
Frequently Asked Questions
What is GHSA-xfhx-r7ww-5995?
Which Duplicate Advisory versions are affected?
What version fixes GHSA-xfhx-r7ww-5995?
Is keras affected?
What CWE is associated with GHSA-xfhx-r7ww-5995?
How can I check PyPI dependencies for GHSA-xfhx-r7ww-5995?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xfhx-r7ww-5995",
"modified" : "2026-05-06T23:06:56Z",
"published" : "2026-01-15T15:31:19Z",
"withdrawn" : "2026-05-06T23:06:56Z",
"aliases" : [ ],
"summary" : "Duplicate Advisory: Google Keras Allocates Resources Without Limits or Throttling in the HDF5 weight loading component",
"details" : "### Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-mgx6-5cf9-rr43. This link is maintained to preserve external references.\n\n### Original Description\nAllocation of Resources Without Limits or Throttling in the HDF5 weight loading component in Google Keras 3.0.0 through 3.12.0 and 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" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "keras"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "3.12.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "keras"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.13.0"
}, {
"fixed" : "3.13.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-0897"
}, {
"type" : "WEB",
"url" : "https://github.com/keras-team/keras/pull/21880"
}, {
"type" : "WEB",
"url" : "https://github.com/keras-team/keras/pull/22081"
}, {
"type" : "WEB",
"url" : "https://github.com/keras-team/keras/commit/7360d4f0d764fbb1fa9c6408fe53da41974dd4f6"
}, {
"type" : "WEB",
"url" : "https://github.com/keras-team/keras/commit/f704c887bf459b42769bfc8a9182f838009afddb"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/keras-team/keras"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-770" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-01-15T20:11:41Z",
"nvd_published_at" : "2026-01-15T14:16:26Z"
}
}