Search covers the description text, product and vendor names and weakness types (also partial words).

CVE-2025-9906
keras

Score8.6 High
CVSS 4.0
Exploit probability (EPSS)0.55%
within the next 30 days
CategoryCode execution & injection
Published19 September 2025
Last modified: 19 October 2026

In short

This vulnerability can be exploited with local access to the device, with a regular user account, with user interaction.

A successful attack has high impact: reading confidential data, modifying data, crashing the system or making it unavailable.

Weakness type: Deserialization of untrusted data.

✨ AI commentary

After a short ad, a plain-language commentary on this vulnerability is shown. AI can make mistakes; base decisions on the official sources.

Official description

The Keras Model.load_model method can be exploited to achieve arbitrary code execution, even with safe_mode=True. One can create a specially crafted .keras model archive that, when loaded via Model.load_model, will trigger arbitrary code to be executed. This is achieved by crafting a special config.json (a file within the .keras archive) that will invoke keras.config.enable_unsafe_deserialization() to disable safe mode. Once safe mode is disable, one can use the Lambda layer feature of keras, which allows arbitrary Python code in the form of pickled code. Both can appear in the same archive. Simply the keras.config.enable_unsafe_deserialization() needs to appear first in the archive and the Lambda with arbitrary code needs to be second.

CVSS: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/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:Y/R:A/V:X/RE:X/U:X

Weakness: CWE-502 – Deserialization of untrusted data

Affected products

VendorProductVersions
keraskeras>=3.0.0 <3.11.0

Sources

Latest in the same category

  • CVE-2026-139989 High 8.5
    Languagemodels 1.0.0 contains a template injection vulnerability in Config.use_hf_model that allows remote attackers to execute code by supplying a malicious Hugging Face model chat_template. Attackers who control a…
    Code execution & injection · 30 November 2026
  • CVE-2026-137186 High 8.7
    pluggedin-app is a self-hostable web interface for managing Model Context Protocol servers. Prior to 4.0.0, an authenticated user adding a STDIO MCP server can supply crafted args that PackageManager.transformCommand()…
    Code execution & injection · 30 November 2026
  • CVE-2026-137185 High 7.3
    Code Graph RAG is an AI-powered knowledge graph and retrieval system for querying, understanding, and editing multi-language codebases. In 0.0.844 and earlier, execute_shell_command in…
    Code execution & injection · 30 November 2026
  • CVE-2026-138669 Low 2.1
    A vulnerability was found in SourceCodester CET-Tally System 1.0. This vulnerability affects the function export_leaderboard of the file index.php of the component Leaderboard CSV Export. The manipulation of the…
    Code execution & injection · 30 November 2026
  • CVE-2026-137180 Critical 9.9
    Breeze is an open source IT platform combining remote monitoring and management, professional services automation, and a governed AI operator. Prior to 0.115.0, the Breeze agent replaced {{param}} placeholders with raw…
    Code execution & injection · 30 November 2026
  • CVE-2026-138668 Low 2
    A vulnerability has been found in youseries UReport up to 2.2.9. This affects the function buildTable of the file ureport2-core/src/main/java/com/bstek/ureport/export/html/HtmlProducer.java of the component…
    Code execution & injection · 30 November 2026