Impact
The vulnerability stems from Keras version 3.15.0’s keras.layers.TorchModuleWrapper.from_config method, which calls torch.load(...) with weights_only set to False and without requiring an explicit safe‑mode opt‑in. When this method processes an attacker‑controlled PyTorch pickle payload, deserialization occurs by default, satisfying the conditions of CWE‑502 and allowing the execution of arbitrary code within the process that loads the layer.
Affected Systems
The affected product is Keras, released by the keras‑team, specifically version 3.15.0. No other releases are listed as impacted, indicating that only this exact release contains the unsafe deserialization path.
Risk and Exploitability
The CVSS score of 7.8 indicates high severity, while the EPSS score of less than 1% shows a very low current likelihood of exploitation. The vulnerability is not listed in CISA’s KEV catalog. Based on the description, it is inferred that an attacker could remotely supply a crafted layer configuration to a Keras application that calls from_config outside a SafeModeScope context, leading to arbitrary code execution on the host that processes the configuration.
OpenCVE Enrichment
Github GHSA