CVE-2025-49655CWE-502insecure-deserialization

CVE-2025-49655

Critical · published October 17, 2025

CVSS v3.1
9.8
EPSS
1%
Percentile
54.4
In the wild
Unconfirmed
What it is

🚨 A maliciously crafted Keras file could run arbitrary code on your system, even with safe mode enabled! 🔥 Think of it like a delivery service that accepts packages without checking the contents — you never know when a dangerous parcel might arrive and cause chaos once opened! This vulnerability allows an attacker to execute any code they want on the end user's system, potentially leading to full system compromise. As this could happen through both local and remote files, your system's security is at risk every time a Keras model is loaded!

Put simply

Think of it like a delivery service that accepts packages without checking the contents — you never know when a dangerous parcel might arrive and cause chaos once opened! The vulnerability arises from the deserialization of untrusted data in versions of the Keras framework from 3.11.0 to below 3.11.3. When a TorchModuleWrapper class is included in a maliciously uploaded Keras file, it can execute arbitrary code when that file is loaded.

What to do

This vulnerability allows an attacker to execute any code they want on the end user's system, potentially leading to full system compromise. As this could happen through both local and remote files, your system's security is at risk every time a Keras model is loaded! Upgrade your Keras framework to version 3.11.3 or later immediately. Additionally, review your code to ensure that any uploaded Keras files are properly validated before being processed. Implement strict controls around file uploads to mitigate this risk. You've got this! Follow these steps and you'll bolster your security in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00750 · 54.4th percentile
Weakness
CWE-502 · Deserialization of Untrusted Data
Published
2025-10-17T20:15Z
References (2)
EPSS history
Timeline
  • 17 OCT 15:20Z
    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…
    cvelistv5