GHSA-36rr-ww3j-vrjv · Severity: high · Ecosystem: pip — The Keras `Model.load_model` method **silently** ignores `safe_mode=True` and allows arbitrary code execution when a `.h5`/`.hdf5` file is loaded.
The Keras Model.load_model method can be exploited to achieve arbitrary code execution, even with safe_mode=True. One can create a specially crafted .h5/.hdf5 model archive that, when loaded via Model.load_model, will trigger arbitrary code to be executed. This is achieved by crafting a special .h5 archive file that uses the Lambda layer feature of keras which allows arbitrary Python code in the form of pickled code. The vulnerability comes from the fact that the safe_mode=True option is not honored when reading .h5 archives. Note that the .h5/.hdf5 format is a legacy format supported by Keras 3 for backwards compatibility.
Conclusion & alert: CVE-2025-9905 is rated Exploit Available (50/100): CVSS High severity, with low exploitation likelihood (EPSS 0.21%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.01% | 0.21% | +0.19% |
| 2 | 2025-09-19 | — | 0.01% | — |
Full EPSS history (2 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 7.3 | 4.0 | HIGH |
|
— | — | [email protected] |
| 7.3 | 3.1 | HIGH |
|
1.3 | 5.9 | [email protected] |
GHSA-36rr-ww3j-vrjv · Severity: high · Ecosystem: pip — The Keras `Model.load_model` method **silently** ignores `safe_mode=True` and allows arbitrary code execution when a `.h5`/`.hdf5` file is loaded.
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2025-9905 not yet assigned priority: Debian including 1 source packages (keras), 1 status rows across 1 suites (bullseye): open 1. | https://security-tracker.debian.org/tracker/CVE-2025-9905 |
redhat
|
high | — | https://access.redhat.com/security/cve/CVE-2025-9905 |
ubuntu
|
medium | CVE-2025-9905 medium priority: Ubuntu including 1 source packages (keras), 7 status rows across 7 suites (bionic, focal, jammy, noble, plucky, questing, upstream): DNE 4, needs-triage 3. | https://ubuntu.com/security/CVE-2025-9905 |
| URL | Tags |
|---|---|
| https://github.com/keras-team/keras/pull/21602 | Issue Tracking Patch |
| https://github.com/keras-team/keras/security/advisories/GHSA-36rr-ww3j-vrjv | Exploit Vendor Advisory |