Live threats

All CVEs / Keras

CVE-2025-1550Keras

High 7.3

Priority
44
CVSS 4.0
7.3
EPSS
2.9%
probability of exploitation in 30 days · percentile 88
Auth required
Yes
Published
Mar 11, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-94
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: total
Vector
CVSS: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/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Keras.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI keras ≥ 3.0.0 < 3.9.0 3.9.0 pip install "keras>=3.9.0"
PyPI keras ≥ 3.0.0 < 3.8.0 3.8.0 pip install "keras>=3.8.0"

Per OSV / GitHub Advisories (GHSA-48g7-3x6r-xfhp, PYSEC-2025-122). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
keraskeras≥ 3.0.0 < 3.8.0

Official sources

References

Links published by the sources. Open them with care.