CVE-2026-12484
Unsafe Deserialization in keras.layers.TorchModuleWrapper.from_config
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.
INFO
Published Date :
July 19, 2026, 8:16 p.m.
Last Modified :
Oct. 24, 2026, 8:10 p.m.
Remotely Exploit :
No
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.0 | HIGH | [email protected] |
Solution
- Update Keras to version 3.16.0 or later.
- Avoid deserializing untrusted PyTorch pickle data.
- Ensure `SafeModeScope(True)` context for loading.
Public PoC/Exploit Available at Github
CVE-2026-12484 has a 1 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-12484.
| URL | Resource |
|---|---|
| https://huntr.com/bounties/ab14df49-13b5-4442-b754-3189430bfa28 | |
| https://huntr.com/bounties/ab14df49-13b5-4442-b754-3189430bfa28 |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-12484 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-12484
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Community reconstruction of the legacy JSON NVD Data Feeds. This project uses and redistributes data from the NVD API but is neither endorsed nor certified by the NVD.
Shell
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-12484 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-12484 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Oct. 24, 2026
Action Type Old Value New Value Added Translation Title: keras-team/keras de keras-team, Description: Una vulnerabilidad en keras-team/keras versión 3.15.0 permite la deserialización insegura de datos pickle de PyTorch controlados por el atacante a través del método público ’keras.layers.TorchModuleWrapper.from_config’. Este método invoca ’torch.load(..., weights_only=False)’ sin requerir una activación explícita de modo inseguro, como un parámetro ’safe_mode=False’. Cuando se llama fuera de un contexto ’SafeModeScope(True)’, la ausencia de un estado de modo seguro ambiental permite la deserialización insegura por defecto. Este problema puede llevar a la ejecución de código arbitrario si se procesan configuraciones de capas de Keras no confiables utilizando este método. La vulnerabilidad surge porque el método no impone prácticas de deserialización segura a menos que esté explícitamente protegido por el modo seguro de Keras. -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jul. 20, 2026
Action Type Old Value New Value Added Reference https://huntr.com/bounties/ab14df49-13b5-4442-b754-3189430bfa28 Added SSVC {'id': 'CVE-2026-12484', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-07-20T13:45:26.059176Z'} -
New CVE Received by [email protected]
Jul. 19, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'keras-team', 'product': 'keras-team/keras', 'versions': [{'status': 'affected', 'version': 'unspecified', 'versionType': 'custom', 'lessThanOrEqual': 'latest'}]}] Added 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. Added CVSS V3 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H Added CWE CWE-502 Added Reference https://huntr.com/bounties/ab14df49-13b5-4442-b754-3189430bfa28