Duty analyst on shift

UK Cyber Defence
VulnerabilityAnalyzed

CVE-2025-1550

The Keras Model.load_model function permits arbitrary code execution, even with safe_mode=True, through a manually constructed, malicious .keras archive.

EXPLOITHIGH 7.3EPSS 2.60%

Does this matter?

A public exploit is published in Exploit-DB and the impact is high, while EPSS rates exploitation at 2.6%. Anyone can run this; patch or mitigate before the next change window and check exposed instances for signs of use.

Description

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 4.0
7.3 HIGHCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/M
EPSS
2.60% probability · 86th percentile
Public exploits
1 in Exploit-DB · first 16 July 2025
CISA KEV
Not listed
Weakness
CWE-94: Code injection
Affected
keras/keras
Source
cve-coordination@google.com

In plain terms

It needs a foothold on the machine first, so it matters most as the second step of an attack: turning limited access into more.

Reached from
From the machine itself. The attacker needs a session on it, or has to get a user to run something.
Effort
Nothing special has to be got round first. It also works only under certain deployment or runtime conditions.
Login needed
An ordinary user account.
Someone else involved
Yes. Someone has to take a deliberate step, such as opening a crafted file or dismissing a warning.
At risk on the affected system
Reading data: serious. Changing data: serious. Stopping the service: serious.
At risk beyond it
Reading data: serious. Changing data: serious. Stopping the service: serious.

Read from the CVSS 4.0 vector above. It describes the flaw itself, not how your own systems are set up.

The first public exploit in Exploit-DB is dated 16 July 2025, about 4 months after the record was published.

EPSS trend
0%3%5%4 December 2026: 2.60%4 December 20264 December 2026

EPSS 2.6% since 4 December 2026; no change recorded yet. Points are recorded when the score first appears and whenever it moves by a percentage point or more.

Public exploits (1)

Entries in Exploit-DB that cite this CVE. Links go to the Exploit-DB page and to the file in the public repository; nothing is hosted here. A verified tick means the Exploit-DB team confirmed the exploit works against the stated version.

EDB-IDTitleTypePublishedVerified
EDB-52359source ↗Keras 2.15 - Remote Code Execution (RCE)python · Mohammed Idrees Banyamerremote16 July 2025no

The same product

We hold 6 records for keras/keras. None of them is on CISA’s known-exploited list. Follow this product to hear of the next one.

Where to go from here

One vulnerability is rarely the whole question. These are free, and none of them asks for an account.

By email

Our briefing by email: what changed, what to patch and what it means for a UK organisation. Written for the people who have to act on it.

Double opt-in. Unsubscribe in one click. No sharing, ever.

Source: NVD record, EPSS from FIRST.org, KEV from CISA, exploits from Exploit-DB. Refreshed daily. Download this record as JSON.