CVE-2025-1550: Vulnerability in Keras
Critical. 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.
PyPI, CWE-94
- Exploitation
- None confirmed
- Severity
- 9.8 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-48g7-3x6r-xfhp
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weakness
- CWE-94
- Published
- 11 Mar 2025
- Last change
- 17 Jun 2026
- Ecosystem
- PyPI
Affected products
Affected versions and the first fixed release
- Keras From 3.0.0 before 3.8.0. Fixed in 3.8.0
Affected packages
Vulnerable version ranges and fixed releases
- keras PyPI, Affected from 3.0.0 before 3.9.0. Fixed in 3.9.0
Advisories
Vendor and security advisories
- towerofhanoi.it/writeups/cve-2025-1550/
- github.com/keras-team/keras/security/advisories/GHSA-48g7-3x6r-xfhp
Patches and fixes
Updates, commits and release notes
- github.com/keras-team/keras/pull/20751
- github.com/keras-team/keras/commit/e67ac8ffd0c883bec68eb65bb52340c7f9d3a903
Related
- Keras vulnerabilities Recent advisories, watch this product