Advisory record · GHSA-v2w2-w228-c444

Keras: TorchModuleWrapper can deserialize unsafe PyTorch pickle data

CVSS 7.8 HighEPSS 0.0030 · 23rd percentile

Published by the GitHub Advisory Database at 19 Jul 2026, 21:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
kerasPyPI<3.12.3 || >=3.13.0, <3.15.03.12.3, 3.15.0
Identifiers
GHSA-v2w2-w228-c444 · CVE-2026-12484 · PYSEC-2026-3634
Weakness (CWE)
CWE-502
Published
19 Jul 2026
Updated
10 Aug 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Keras versions below 3.12.3, and versions from 3.13.0 up to but not including 3.15.0, are vulnerable. The keras.layers.TorchModuleWrapper.from_config method loads PyTorch pickle data with unsafe settings by default when Keras safe mode is not enabled, so an attacker who supplies a malicious layer configuration could achieve arbitrary code execution if untrusted configurations are processed. Upgrade to Keras 3.12.3 or 3.15.0. Until then, enable Keras safe mode and avoid loading untrusted layer configurations.

Written 5 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.8 High 3.0 CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CNA (@huntr_ai)
  • CISA KEV Not listed.
  • EPSS 0.0030, the 23rd percentile, on 10 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:40 UTC First seen by agentprime
  2. 31 Oct 2026, 14:40 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.