Skip to content
CriticalVulnerability

CVE-2025-49655: Keras deserialization flaw allows code execution via malicious files

Identifier
CVE-2025-49655
Published
Record updated
View JSON
Affected
  • keras >= 3.11.0, < 3.11.3
Fixed in
3.11.3
  • released August 21, 2025, 57 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.8%

Summary

CVE-2025-49655 affects the Keras framework in versions 3.11.0 up to but not including 3.11.3. A maliciously uploaded Keras file containing a TorchModuleWrapper class can run arbitrary code on an end user's system when loaded, even with safe mode enabled. The flaw (CWE-502) can be triggered through both local and remote files.

Mitigation

Fixed in 3.11.3 (upgrade Keras to version 3.11.3 or later). Reference: https://github.com/keras-team/keras/pull/21575