The Keras Model.load_model function permits arbitrary code execution, even with safe_mode=True, through a manually constructed, malicious .keras archive. By altering the config.json file within the...
Full analysis pending. Showing NVD description excerpt.
Affected Systems
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| keras | pip | >= 3.0.0, < 3.9.0 | 3.9.0 |
| keras | pip | — | No patch |
Severity & Risk
Recommended Action
Patch available
Update keras to version 3.9.0
Compliance Impact
Compliance analysis pending. Sign in for full compliance mapping when available.
Technical Details
NVD Description
The Keras Model.load_model function permits arbitrary code execution, even with safe_mode=True, through a manually constructed, malicious .keras archive. By altering the config.json file within the archive, an attacker can specify arbitrary Python modules and functions, along with their arguments, to be loaded and executed during model loading.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H References
- github.com/keras-team/keras/pull/20751 Issue Patch
- towerofhanoi.it/writeups/cve-2025-1550/ Exploit 3rd Party
- github.com/advisories/GHSA-48g7-3x6r-xfhp
- github.com/keras-team/keras/commit/e67ac8ffd0c883bec68eb65bb52340c7f9d3a903
- github.com/keras-team/keras/pull/20751
- github.com/keras-team/keras/releases/tag/v3.9.0
- github.com/keras-team/keras/security/advisories/GHSA-48g7-3x6r-xfhp
- nvd.nist.gov/vuln/detail/CVE-2025-1550