Skip to content
HighVulnerability

CVE-2025-8747: Keras safe mode bypass in Model.load_model via crafted .keras archive

Identifier
CVE-2025-8747
Published
Record updated
View JSON
Affected
  • keras >= 3.0.0, < 3.11.0
Fixed in
3.11.0
  • released July 29, 2025, 12 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.1%

Summary

CVE-2025-8747 is a safe mode bypass in the `Model.load_model` method in Keras versions 3.0.0 through 3.10.0. An attacker who convinces a user to load a specially crafted `.keras` model archive can achieve arbitrary code execution. Google Inc. is the CNA, rating it CVSS-B 8.6 HIGH under CVSS 4.0, with CWE-502 (Deserialization of Untrusted Data).

Mitigation

The source does not state a fix yet. Check the original advisory for updates.