🛡️ GHSA-5478-v2w6-c6q7 — keras (CVE-2025-1550)

🟠 CVSS 8.0 — High ✅ No Known Exploit CWE-94 OSV
8.0
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Duplicate Advisory: Keras arbitrary code execution vulnerability

# Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-48g7-3x6r-xfhp. This link is maintained to preserve external references.

# Original 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.

How this vulnerability can be exploited

This issue can be reached with local access to the system, attack complexity is low, an attacker needs low-level privileges on the target. A user must actively cooperate. Rated impact: confidentiality high, integrity high, availability high.

Weakness class

GHSA-5478-v2w6-c6q7 is classified as CWE-94: Code Injection. Input is incorporated into code that the runtime evaluates, so an attacker can have their own code executed.

Affected software

GHSA-5478-v2w6-c6q7 is recorded against 1 package.

  • keras (fixed in 3.9.0)

Timeline and source

Published on 11 March 2025. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

nvd.nist.gov (Advisory)
github.com (Web)
github.com (Web)
github.com (Package)
github.com (Web)

Details

Severity HIGH
CVSS Score 8.0
CVSS 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
CWE CWE-94
Public Exploit ✅ No
Source OSV
Published 2025-03-11
Updated 2026-08-12
Modified 2025-03-11
Fix URL N/A

Affected Packages

Software From version Fixed in
keras 3.9.0

Similar Threats

Site Security Check

Is keras part of your stack?

GHSA-5478-v2w6-c6q7 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesGitHub AdvisoryGitHub Advisory Undated