8.6High

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

Google Keras Published: (1 year ago)

Description

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.

Weakness (CWE): CWE-502

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Google Keras 3.0.0 – ≤ 3.10.0
keras keras 3.0.0 – ≤ 3.10.0

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:keras:keras:*:*:*:*:*:*:*:* ≥ 3.0.0 ≤ 3.10.0