PyPI/keras CVE-2025-9905: high 7.3, EPSS 0.22%
The Keras `Model.load_model` method **silently** ignores `safe_mode=True` and allows arbitrary code execution when a `.h5`/`.hdf5` file is loaded.
Action: Upgrade keras to 3.11.3 or later.
pip install keras==3.11.3Affected
| introduced | fixed | last affected |
|---|---|---|
| 3.0.0 | 3.11.3 | - |
Fixed versions
| 3.11.3 |
Sources
- osv: GHSA-36rr-ww3j-vrjv
- nvd: CVE-2025-9905
- https://github.com/keras-team/keras/security/advisories/GHSA-36rr-ww3j-vrjv
- https://github.com/keras-team/keras/pull/21602
- https://github.com/keras-team/keras
- https://github.com/pypa/advisory-database/tree/main/vulns/keras/PYSEC-2025-123.yaml
CVE-2025-9905 · published · modified · JSON