Skip to main content
VulnerabilityPublished

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

Affects keras-team/kerasSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 7.8 High · fixed in 3.12.3 : patch keras-team/keras soon.

Data as of 2 Dec 2026, 18:36 UTC

CVSS 3.0 base score
7.8High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 26% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 3.12.3, 3.15.0
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 19 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2 Dec 2026.

What to do

Upgrade keras to 3.12.3; keras to 3.15.0.

Affected software

ProductAffectedFixed in
keras-teamkeras-team/kerasAffected
  • ≥ unspecified, ≤ latest
Fixed in–
PyPIkeraspkg:pypi/kerasOther threatsAffected
  • <3.12.3
Fixed in
  • 3.12.3
PyPIkeraspkg:pypi/kerasOther threatsAffected
  • 3.13.0 – 3.14.1
  • >=3.13.0 <3.15.0
5 affected builds
Fixed in
  • 3.15.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

If you cannot patch yet, users should avoid processing untrusted Keras layer configurations with the TorchModuleWrapper.from_config method or ensure that calls to this method occur within a SafeModeScope(True) context to enforce safe deserialization.

Description

CVE-2026-12484 is a high-severity vulnerability in keras-team/keras version 3.15.0 that allows unsafe deserialization of attacker-controlled PyTorch pickle data via the public method keras.layers.TorchModuleWrapper.from_config. This method calls torch.load without requiring an explicit unsafe opt-in or enforcing safe deserialization, potentially leading to arbitrary code execution if untrusted Keras layer configurations are processed. The vulnerability exists because safe deserialization is only enforced when explicitly guarded by Keras safe mode, which is not the default behavior.

References

Community reviews

Loading reviews…