7.8

CVE-2026-12484: Unsafe Deserialization in keras.layers.TorchModuleWrapper.from_config

Awaiting analysis
AliasesGHSA-v2w2-w228-c444PYSEC-2026-3634UBUNTU-CVE-2026-12484
Published 19-07-2026Last modified 20-07-2026

Vulnerability summary

CVE-2026-12484 is a high (CVSS 7.8) Deserialization of Untrusted Data vulnerability in keras-team keras-team/keras. EPSS estimates a 0.32% chance of exploitation in the next 30 days, higher than 26.2% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.0 (CVE.org)
EPSS score
0.32%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 19-07-2026
    PublishedVulnerability first disclosed.
  2. 20-07-2026
    Last modifiedVulnerability information updated.

Description

A vulnerability in keras-team/keras version 3.15.0 allows unsafe deserialization of attacker-controlled PyTorch pickle data through the public `keras.layers.TorchModuleWrapper.from_config` method. This method invokes `torch.load(..., weights_only=False)` without requiring an explicit unsafe opt-in, such as a `safe_mode=False` parameter. When called outside a `SafeModeScope(True)` context, the absence of an ambient safe mode state permits unsafe deserialization by default. This issue can lead to arbitrary code execution if untrusted Keras layer configurations are processed using this method. The vulnerability arises because the method does not enforce safe deserialization practices unless explicitly guarded by Keras safe mode.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

0.32%

Chance of exploitation in the next 30 days

Percentile

26%

Versus all other CVEs

30-day change

Increase +0.01 pp

From 0.30% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Debian1 product
  • kerasAll versions (No fix recorded)
Keras-team1 product
PyPI1 product
  • keras< 3.12.3 | ≥ 3.13.0, < 3.15.0
Ubuntu1 product
  • kerasAll versions (No fix recorded)

4 vendors · 4 products

References

14 links
Show all 14 references