7.3Alta
CVE-2025-1550Arbitrary Code Execution via Crafted Keras Config for Model Loading
Descripción
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.
Debilidad (CWE):
CWE-94
Datos: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Se publican tal como los indican las fuentes, en inglés.
Productos y versiones afectados
Referencias y parches
- https://github.com/keras-team/keras/pull/20751 Issue TrackingPatch
- https://towerofhanoi.it/writeups/cve-2025-1550/ ExploitThird Party Advisory
Coincidencias CPE (NVD) (1)
cpe:2.3:a:keras:keras:*:*:*:*:*:*:*:*≥ 3.0.0 < 3.8.0