CVE-2025-8747 HIGH

CVE-2025-8747: Keras safe_mode bypass allows arbitrary code execution when loading a malicious model.

Vendor Google
Product Keras
Weakness CWE-502 · Unsafe deserialization
Published August 11, 2025
Last update February 26, 2026

CVSS base score

8.6/10
Attack vector Local
Attack complexity Low
Privileges required Low
User interaction
Confidentiality
Integrity

CVSS vector

CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/AU:Y/R:A

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

August 11, 2025 CVE published
February 26, 2026 Record updated