CVE-2025-1550
CRITICAL9.8EPSS 8.0%Arbitrary Code Execution via Crafted Keras Config for Model Loading
發布日:2025/3/11修改日:2026/5/20
描述
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.
受影響套件(2)
- PyPI/keras>= 3.0.0, < 3.9.0
- PyPI/keras>= 3.0.0, < 3.8.0
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H |
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
參考連結(7)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2025-1550
- EXPLOIThttps://towerofhanoi.it/writeups/cve-2025-1550/
- PATCHhttps://github.com/keras-team/keras
- WEBhttps://github.com/keras-team/keras/commit/e67ac8ffd0c883bec68eb65bb52340c7f9d3a903
- WEBhttps://github.com/keras-team/keras/pull/20751
- WEBhttps://github.com/keras-team/keras/releases/tag/v3.9.0
- WEBhttps://github.com/keras-team/keras/security/advisories/GHSA-48g7-3x6r-xfhp