CVE-2025-49655
Keras TorchModuleWrapper Deserialization Vulnerability
Description
Deserialization of untrusted data can occur in versions of the Keras framework running versions 3.11.0 up to but not including 3.11.3, enabling a maliciously uploaded Keras file containing a TorchModuleWrapper class to run arbitrary code on an end user’s system when loaded despite safe mode being enabled. The vulnerability can be triggered through both local and remote files.
INFO
Published Date :
Oct. 17, 2025, 4:15 p.m.
Last Modified :
Oct. 17, 2025, 4:15 p.m.
Remotely Exploit :
Yes !
Source :
6f8de1f0-f67e-45a6-b68f-98777fdb759c
CVSS Scores
Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
---|---|---|---|---|---|---|
CVSS 3.1 | CRITICAL | 6f8de1f0-f67e-45a6-b68f-98777fdb759c |
Solution
- Update Keras to a secure version.
- Avoid loading untrusted Keras files.
- Review security configurations for deserialization.
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-2025-49655
.
URL | Resource |
---|---|
https://github.com/keras-team/keras/pull/21575 | |
https://hiddenlayer.com/sai_security_advisor/2025-10-keras/ |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-49655
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-2025-49655
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).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-49655
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-49655
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.
-
New CVE Received by 6f8de1f0-f67e-45a6-b68f-98777fdb759c
Oct. 17, 2025
Action Type Old Value New Value Added Description Deserialization of untrusted data can occur in versions of the Keras framework running versions 3.11.0 up to but not including 3.11.3, enabling a maliciously uploaded Keras file containing a TorchModuleWrapper class to run arbitrary code on an end user’s system when loaded despite safe mode being enabled. The vulnerability can be triggered through both local and remote files. Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Added CWE CWE-502 Added Reference https://github.com/keras-team/keras/pull/21575 Added Reference https://hiddenlayer.com/sai_security_advisor/2025-10-keras/