CVE-2026-12484: Unsafe Deserialization in keras.layers.TorchModuleWrapper.from_config

Published Jul 19, 2026
·
Updated

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.fromconfig method. This method invokes torch.load(..., weightsonly=False) without requiring an explicit unsafe opt-in, such as a safemode=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.

Affected Software

1 affected component
keras-team Keras=3.15.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Ensure untrusted Keras layer configurations are processed only within a SafeModeScope(True) context so that TorchModuleWrapper.from_config enforces safe deserialization instead of default unsafe torch.load(..., weights_only=False).

    keras.layers.TorchModuleWrapper.from_config SafeModeScope (ambient safe mode context) = True

Event History

Jul 19, 2026
CVE Published
via MITRE·07:47 PM
Data Sourced
via MITRE·07:47 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:16 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-12484?

CVE-2026-12484 has a high severity score of 7.8.

2

How does CVE-2026-12484 affect software security?

CVE-2026-12484 allows unsafe deserialization of attacker-controlled PyTorch pickle data, potentially leading to remote code execution.

3

How do I fix CVE-2026-12484?

To fix CVE-2026-12484, upgrade to a patched version of keras that addresses the unsafe deserialization issue.

4

What versions of Keras are affected by CVE-2026-12484?

CVE-2026-12484 affects Keras version 3.15.0.

5

Is CVE-2026-12484 a zero-day vulnerability?

CVE-2026-12484 is not a zero-day vulnerability as it was published on July 19, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203