CVE-2025-1550
Python vulnerability analysis and mitigation

Overview

The Keras Model.load_model function contains a critical security vulnerability (CVE-2025-1550) that permits arbitrary code execution, even when safe_mode=True is enabled. The vulnerability was disclosed on March 11, 2025, affecting the popular multi-backend deep learning framework used by organizations like CERN, NASA, and NIH. The issue allows attackers to execute arbitrary code through a maliciously crafted .keras archive (NVD, Security Online).

Technical details

The vulnerability stems from a flaw in the Model.load_model function's handling of .keras archives. Attackers can manipulate the config.json file within the archive to specify arbitrary Python modules and functions, along with their arguments, which are then loaded and executed during the model loading process. The vulnerability has been assigned a CVSS score of 7.3 (HIGH) with the vector string 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, indicating its significant severity (NVD).

Impact

The vulnerability's impact is severe as it enables attackers to execute arbitrary code on systems using affected Keras versions. This poses a significant risk to organizations and individuals using Keras for machine learning applications, particularly in sensitive environments where code execution could lead to system compromise or data breaches (Security Online).

Mitigation and workarounds

The vulnerability has been patched in Keras version 3.9 and later. Users are strongly advised to upgrade to version 3.9 or later to address this security issue. As a temporary workaround, users who cannot immediately update should only load models from trusted sources and use model archives that they have created themselves with Keras (Security Online).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-68664CRITICAL9.3
  • PythonPython
  • langchain-core
NoYesDec 23, 2025
GHSA-83jg-m2pm-4jxjHIGH8.3
  • PythonPython
  • cowrie
NoYesDec 20, 2025
CVE-2025-67743MEDIUM6.3
  • PythonPython
  • local-deep-research
NoYesDec 23, 2025
CVE-2025-68480MEDIUM5.3
  • PythonPython
  • py3-marshmallow
NoYesDec 22, 2025
CVE-2025-65713MEDIUM4
  • PythonPython
  • homeassistant
NoYesDec 23, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management