CVE-2025-1550
criticalpriority · attend · 50EPSS 0.026 · 85 %ileexploit · PoCEURUUSEPSS · scored 2026-10-27
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–critical · 5.9–9.8
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (2)
Public proof-of-concept and weaponised exploit code.
- EDB-52359Keras 2.15 - Remote Code Execution (RCE)PoC · exploit_db
- ChCh0i/cve-2025-1550ChCh0i/cve-2025-1550PoC · poc_in_github
affected products (6)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-48g7-3x6r-xfhpArbitrary Code Execution via Crafted Keras Config for Model Loading2025-03-11ghsa · osvUS
### Impact 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. ### Patches This problem is fixed starting with version `3.9`. ### Workarounds Only load models from trusted sources and model archives created with Keras. ### References - https://www.cve.org/cverecord?id=CVE-2025-1550 - https://github.com/keras-team/keras/pull/20751
- PYSEC-2025-1222025-03-11vendor · osvUS
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.
also known as (7)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (9)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2025-1550cnnvd
- https://github.com/keras-team/keras/pull/20751cnnvd
- https://github.com/keras-team/keras/releasesPatchcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2025-1550cnnvd
- https://www.exploit-db.com/exploits/52359cnnvd
- https://github.com/keras-team/keras/pull/20751enisa_euvd
- https://towerofhanoi.it/writeups/cve-2025-1550/enisa_euvd
- https://github.com/keras-team/keras/pull/20751Issue TrackingPatchnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan