High severity · published Jul 19, 2026
CVE-2026-12484
Unsafe Deserialization in keras.layers.TorchModuleWrapper.from_config
7.8
CVSS
0.3%
EPSS
No
On KEV
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 vector
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 23% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
KE
keras-team/keras · keras-team
through latest · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-12484
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-12484
huntr.com
https://huntr.com/bounties/ab14df49-13b5-4442-b754-3189430bfa28
More from keras-team/keras
9.8
CVE-2026-12481
Deserialization of Untrusted Data in keras-team/keras
8.1
CVE-2026-11816
Path Traversal in keras-team/keras
8.0
CVE-2025-12638
Path Traversal Vulnerability in keras-team/keras via Tar Archive Extraction in keras.utils.get_file()
7.8
CVE-2026-1462
Safe Mode Bypass in keras-team/keras
6.5
CVE-2026-9335
Improper Handling of HDF5 ExternalLinks in keras-team/keras
