cve.bz

CVE-2026-12484 keras-team keras-team/keras: Deserialization of Untrusted Data

7.8 highEPSS 0.3%Fix available

High (7.8) in keras-team keras-team/keras. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in keras 3.12.3, 3.15.0.

On this page
A vulnerability in keras-team/keras version 3.15.0 allows unsafe deserialization of attacker-controlled PyTorch pickle data through the public `keras.layers.TorchModuleWrapper.from_config` method. This method invokes `torch.load(..., weights_only=False)` without requiring an explicit unsafe opt-in, such as a `safe_mode=False` parameter. When called outside a `SafeModeScope(True)` context, the absence of an ambient safe mode state permits unsafe deserialization by default. This issue can lead to arbitrary code execution if untrusted Keras layer configurations are processed using this method. The vulnerability arises because the method does not enforce safe deserialization practices unless explicitly guarded by Keras safe mode.

Severity

CVSS 3.0

7.8 high
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 24th 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: no · Technical impact: total, assessed 2026-07-20. 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
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

  • keras (PyPI): fixed in 3.12.3, 3.15.0

Ask an AI about this CVE

Show the promptExplain CVE-2026-12484 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-12484?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-12484?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-2026-12484 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
keras-team/kerasthrough latest

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-v2w2-w228-c444PyPIkeras<3.12.33.12.3
GHSA-v2w2-w228-c444PyPIkeras>=3.13.0 <3.15.03.15.0
PYSEC-2026-3634PyPIkeras<3.12.3
>=3.13.0 <3.15.0
3.12.3, 3.15.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11kerasno fix listedDEBIAN-CVE-2026-12484
Ubuntu18.04:LTS, 20.04:LTSkerasno fix listedUBUNTU-CVE-2026-12484
Azure Linux3kerasno fix listedAZL-112670

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. 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

This Important vulnerability affects Red Hat OpenShift AI components utilizing Keras for model processing. A local attacker could achieve arbitrary code execution by providing untrusted Keras layer configurations, which are then unsafely deserialized by the `keras.layers.TorchModuleWrapper.from_config` method. This risk is present when users process external or unverified model configurations within their OpenShift AI deployments.

Red Hat's mitigation

To mitigate this issue, ensure that Red Hat OpenShift AI environments only process Keras layer configurations from trusted sources. Avoid loading or processing any untrusted Keras layer configurations, as this vulnerability can lead to arbitrary code execution.

ProductPackageStateAdvisory
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-agent-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-controller-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-router-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-storage-initializer-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-modelmesh-runtime-adapter-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9Affected

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-2026-12484.

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