CVE-2025-49655: Keras framework vulnerable to deserialization of untrusted data
CVE-2025-49655 · Severity: critical · CVSS 9.8 · Published 2025-10-17
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.
No. Junglewise Threat Intelligence has no report of CVE-2025-49655 being exploited in the wild.
How severe is CVE-2025-49655?
Critical severity, with a CVSS score of 9.8, published 17 October 2025.
Which products and versions are affected?
keras (PyPI) >= 3.11.0, < 3.11.3, ECOSYSTEM:introduced=3.11.0,fixed=3.11.3.
Is there a fix for CVE-2025-49655?
Yes. keras (PyPI): upgrade to 3.11.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2025-49655?
Check whether you run keras (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
keras (PyPI): upgrade to 3.11.3 or later
pip install "keras>=3.11.3"
Affected products
keras (PyPI) >= 3.11.0, < 3.11.3, ECOSYSTEM:introduced=3.11.0,fixed=3.11.3