cve.bz

CVE-2025-49655 keras keras: Deserialization of Untrusted Data

9.8 criticalEPSS 0.8%Fix available

Critical (9.8) in keras keras. EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in keras 3.11.3.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 56th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: total, assessed 2025-10-17. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-502 Deserialization of Untrusted Data
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • keras (PyPI): fixed in 3.11.3

Ask an AI about this CVE

Show the promptExplain CVE-2025-49655 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-49655?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-49655?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-49655 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Kerasfrom 3.11.0 before 3.11.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-cvhh-q5g5-qprpPyPIkeras>=3.11.0 <3.11.33.11.3
PYSEC-2026-368PyPIkeras>=3.11.0 <3.11.33.11.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11kerasno fix listedDEBIAN-CVE-2025-49655
Ubuntu18.04:LTS, 20.04:LTSkerasno fix listedUBUNTU-CVE-2025-49655

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat products in their default configuration do not allow remote upload of model files.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat OpenShift AI 2.25rhoai/odh-kserve-agent-rhel9:v2.25.1-1765613316Fixed 2025-12-17RHSA-2025:23531
Red Hat OpenShift AI 2.25rhoai/odh-kserve-controller-rhel9:v2.25.1-1765613316Fixed 2025-12-17RHSA-2025:23531
Red Hat OpenShift AI 2.25rhoai/odh-kserve-router-rhel9:v2.25.1-1765613316Fixed 2025-12-17RHSA-2025:23531
Red Hat OpenShift AI 2.25rhoai/odh-kserve-storage-initializer-rhel9:v2.25.1-1765326513Fixed 2025-12-17RHSA-2025:23531
Red Hat OpenShift AI 2.25rhoai/odh-modelmesh-runtime-adapter-rhel9:v2.25.1-1764825096Fixed 2025-12-17RHSA-2025:23531
Red Hat OpenShift AI 2.25rhoai/odh-pipeline-runtime-datascience-cpu-py312-rhel9:v2.25.1-1764961121Fixed 2025-12-17RHSA-2025:23531
Red Hat OpenShift AI 2.25rhoai/odh-pipeline-runtime-minimal-cpu-py312-rhel9:v2.25.1-1764961121Fixed 2025-12-17RHSA-2025:23531
Red Hat OpenShift AI 2.25rhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9:v2.25.1-1764961121Fixed 2025-12-17RHSA-2025:23531
Red Hat OpenShift AI 2.25rhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9:v2.25.1-1764961121Fixed 2025-12-17RHSA-2025:23531
Red Hat OpenShift AI 2.25rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9:v2.25.1-1764961121Fixed 2025-12-17RHSA-2025:23531
Red Hat OpenShift AI (RHOAI)rhoai/odh-modelmesh-runtime-adapter-rhel8Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-pipeline-runtime-datascience-cpu-py311-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-pipeline-runtime-minimal-cpu-py311-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-pipeline-runtime-pytorch-cuda-py311-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-pipeline-runtime-pytorch-rocm-py311-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-pipeline-runtime-tensorflow-cuda-py311-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-pipeline-runtime-tensorflow-rocm-py311-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-workbench-codeserver-datascience-cpu-py311-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-workbench-jupyter-datascience-cpu-py311-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-workbench-jupyter-minimal-cpu-py311-rhel9Not affected
17 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-49655.

Attack patterns (CAPEC)

  • CAPEC-586 Object Injection Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON