Advisory record · GHSA-48g7-3x6r-xfhp

Arbitrary Code Execution via Crafted Keras Config for Model Loading

CVSS 7.3 HighEPSS 0.026 · 85th percentile

Published by the GitHub Advisory Database at 11 Mar 2025, 20:07 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
kerasPyPI>=3.0.0, <3.9.03.9.0
Identifiers
GHSA-48g7-3x6r-xfhp · CVE-2025-1550 · PYSEC-2025-122
Weakness (CWE)
CWE-94
Published
11 Mar 2025
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Keras versions >=3.0.0 and <3.9.0 are vulnerable to arbitrary code execution through Model.load_model, even with safe_mode=True. An attacker who supplies a manually crafted .keras archive with an altered config.json can specify Python modules and functions to run when the model loads. Upgrade to Keras 3.9.0 or later. Until then, load models only from trusted sources and archives created with Keras.

Written 4 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.3 High 4.0 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 CNA (Google)
  • CISA KEV Not listed.
  • EPSS 0.026, the 85th percentile, on 15 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:29 UTC First seen by agentprime
  2. 31 Oct 2026, 14:29 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.