GHSA-pwq7-2gvj-vg9v: Duplicate Advisory Keras Safe Mode Bypass Vulnerability Vulnerability
HIGHGHSA-pwq7-2gvj-vg9v is a HIGH keras safe mode bypass vulnerability vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Duplicate Advisory libraries in the PyPI ecosystem. The issue involves keras safe mode bypass vulnerability. Remediation is available by upgrading affected packages to version 3.11.0.
GHSA-pwq7-2gvj-vg9v at a Glance
How to Fix GHSA-pwq7-2gvj-vg9v
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.11.0
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-pwq7-2gvj-vg9v, 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.11.0), 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-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. 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-pwq7-2gvj-vg9v Affected Duplicate Advisory Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
keras
|
PyPI |
≥ 3.0.0
< 3.11.0
|
3.11.0
|
References
Frequently Asked Questions
What is GHSA-pwq7-2gvj-vg9v?
Which Duplicate Advisory versions are affected?
What version fixes GHSA-pwq7-2gvj-vg9v?
Is keras affected?
What CWE is associated with GHSA-pwq7-2gvj-vg9v?
How can I check PyPI dependencies for GHSA-pwq7-2gvj-vg9v?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-pwq7-2gvj-vg9v",
"modified" : "2025-08-12T19:24:04Z",
"published" : "2025-08-11T09:30:36Z",
"withdrawn" : "2025-08-12T19:24:04Z",
"aliases" : [ ],
"summary" : "Duplicate Advisory: Keras safe mode bypass vulnerability",
"details" : "### Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-c9rc-mg46-23w3. This link is maintained to preserve external references.\n\n### Original Description\nA safe mode bypass vulnerability in the `Model.load_model` method in Keras versions 3.0.0 through 3.10.0 allows an attacker to achieve arbitrary code execution by convincing a user to load a specially crafted `.keras` model archive.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/AU:Y/R:A"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "keras"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "3.11.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-8747"
}, {
"type" : "WEB",
"url" : "https://github.com/keras-team/keras/pull/21429"
}, {
"type" : "WEB",
"url" : "https://github.com/keras-team/keras/commit/713172ab56b864e59e2aa79b1a51b0e728bba858"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/keras-team/keras"
}, {
"type" : "WEB",
"url" : "https://jfrog.com/blog/keras-safe_mode-bypass-vulnerability"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-502" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-08-11T23:08:38Z",
"nvd_published_at" : "2025-08-11T08:15:26Z"
}
}