Skip to content
HighVulnerability

CVE-2026-12484: keras-team/keras unsafe deserialization via TorchModuleWrapper.from_config

Identifier
CVE-2026-12484
Published
Record updated
View JSON
Affected
  • keras < 3.12.3, fixed in 3.12.3, released June 26, 2026, 23 days before disclosure
  • keras >= 3.13.0, < 3.15.0, fixed in 3.15.0, released June 24, 2026, 25 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.3%

Summary

CVE-2026-12484 affects keras-team/keras version 3.15.0. The public keras.layers.TorchModuleWrapper.from_config method calls torch.load(..., weights_only=False) without requiring an explicit unsafe opt-in, so it deserializes attacker-controlled PyTorch pickle data by default when no SafeModeScope(True) context is active. Processing untrusted Keras layer configurations this way can lead to arbitrary code execution.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.