Deserialization in Google Keras
CVE-2025-8747
A safe mode bypass vulnerability in the `Model.load_model` method in Keras versions 3.0.0 through 3.10.0 allows an attacker to achieve arbitrary code execution by convincing a user to load a specially crafted `.keras` model archive.
Vulnerability class: Insecure Deserialization
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.001, 1.9th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Google Keras — versions 3.0.0
- Keras
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (fkie-cad/nvd-json-data-feeds). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/keras-team/keras/pull/21429 (patch, Issue Tracking)
- jfrog.com/blog/keras-safe_mode-bypass-vulnerability/ (Third Party Advisory, third-party-advisory)