VDB

CVE-2025-1550

CVE-2025-1550 PUBLISHED CVSS 7.3 HIGH

Arbitrary Code Execution via Crafted Keras Config for Model Loading

Reported by google · Published March 11, 2025

Keras is fixed in 3.9.0 and 3.8.0 (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
KerasPyPI3.9.0, 3.8.0
kubeflow-pipelines-visualization-serverWolfi2.4.1-r2
kubeflow-pipelines-visualization-serverChainguard2.4.1-r2
keraskeras3.8.0

Risk scores

CVSS 4.0
7.3
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

Affected products

VendorProductVersions
GoogleKeras3.0.0
GoogleKeras3.0.0
PyPIkeras3.0.0
keraskeras3.0.0

Timeline

  • Mar 11, 2025 CVE Published
  • Mar 11, 2025 PoC Published (9 in total, the first dated here)
  • Mar 12, 2025 EPSS Score (30 in total, the first dated here)
  • Mar 25, 2025 Coalition ESS Score (15 in total, the first dated here)
  • Jul 31, 2025 CVE Updated
  • Mar 9, 2026 Security Advisory

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-1550
vulnetix vdb fixes CVE-2025-1550

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-1550/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›