8.6

CVE-2025-9906: keras-team keras Deserialization of Untrusted Data

CVSS: 8.6v4.0HighAnalyzed
AliasesGHSA-36fq-jgmw-4r9cPYSEC-2025-76UBUNTU-CVE-2025-9906
Published 19-09-2025Last modified 26-02-2026

Vulnerability summary

CVE-2025-9906 is a high (CVSS 8.6) Deserialization of Untrusted Data vulnerability in keras-team keras. EPSS estimates a 0.20% chance of exploitation in the next 30 days, higher than 9.6% of scored vulnerabilities.

Overall risk
34/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.6/10
010
High · v4.0 (CVE.org)
EPSS score
0.20%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 0 · Related 1

Timeline

  1. 19-09-2025
    PublishedVulnerability first disclosed.
  2. 26-02-2026
    Last modifiedVulnerability information updated.

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 metrics

9 scores · 7 sources · 2 versions

EPSS trend

Probability

0.20%

Chance of exploitation in the next 30 days

Percentile

10%

Versus all other CVEs

30-day change

+0.01 pp

From 0.20% on 18-09-2026

18-09-202618-10-2026
EPSS score
0.20%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Chainguard1 product
  • kubeflow-pipelines-visualization-server< 2.17.0-r0
Debian1 product
  • kerasAll versions (No fix recorded)
Keras1 product
Keras-team1 product
PyPI1 product
  • keras< 3.11.0
Ubuntu1 product
  • kerasAll versions (No fix recorded)
Wolfi1 product
  • kubeflow-pipelines-visualization-server< 2.17.0-r0

7 vendors · 7 products

References

12 links
Show all 12 references