9.8

CVE-2025-1550: Arbitrary Code Execution via Crafted Keras Config for Model Loading

Analyzed
AliasesGHSA-48g7-3x6r-xfhpPYSEC-2025-122UBUNTU-CVE-2025-1550
Published 11-03-2025Last modified 24-07-2025

Vulnerability summary

CVE-2025-1550 is a critical (CVSS 9.8) Improper Control of Generation of Code vulnerability in google keras. EPSS estimates a 2.60% chance of exploitation in the next 30 days, higher than 85.8% of scored vulnerabilities. 2 public exploits are recorded.

Priority
Prioritisepublic exploit

Public exploit (exploit-database, 16-07-2025)

Source freshness unavailable

How is this decided?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
2.60%
0%100%
Low · -0.02 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits2reference, exploit-database

Advisory lineage

Upstream 0 · Downstream 0 · Related 2

Timeline

  1. 11-03-2025
    PublishedVulnerability first disclosed.
  2. 24-07-2025
    Last modifiedVulnerability information updated.

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 metrics

8 scores · 6 sources · 2 versions

EPSS trend

Probability

2.60%

Chance of exploitation in the next 30 days

Percentile

86%

Versus all other CVEs

30-day change

Decrease -0.02 pp

From 2.63% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

2 found
  • referenceUnverified

    Exploit Reference (towerofhanoi.it)

    Maturity: unknown

  • exploit-databaseremotepythonUnverified

    Keras 2.15 - Remote Code Execution (RCE)

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard1 product
  • kubeflow-pipelines-visualization-server< 2.4.1-r2
Google1 product
Keras1 product
PyPI1 product
  • keras≥ 3.0.0, < 3.9.0 | ≥ 3.0.0, < 3.8.0
Ubuntu1 product
  • kerasAll versions (No fix recorded)
Wolfi1 product
  • kubeflow-pipelines-visualization-server< 2.4.1-r2

6 vendors · 6 products

References

14 links
Show all 14 references