Keras vulnerable to CVE-2025-1550 bypass via reuse of internal functionality
CVE-2025-8747 · GHSA-c9rc-mg46-23w3 · published 2025-08-12 · updated 2026-05-29
- Severity
- High
- CVSS score
- 8.8
- Chance of exploitation (EPSS)
- 0.12%
- Fixed in
- 3.11.0
- Exploitation Public proof of concept
- Automatable No
- Technical impact Total
- CISA SSVC
| Type | Vector |Impact| | -------- | ------- | ------- | |Unsafe deserialization |Client-Side (when loading untrusted model)|Arbitrary file overwrite. Can lead to Arbitrary code execution in many cases.|
Upgrade keras to 3.11.0 or later.
1. Add an additional flag blockalllambda that allows users to completely disallow loading models with a Lambda layer. 1. Audit the keras, kerashub, kerascv, kerasnlp modules and remove/block all “gadget functions” which could be used by malicious ML models. 1. Add an additional flag lambdawhitelist_functions that allows users to specify a list of functions that are allowed to be invoked by a Lambda layer
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| keras | PyPI | >= 3.0.0, < 3.11.0 | 3.11.0 |
- CriticalLMDeploy has Remote Code Execution by Pickle Deserialization via handle_zmq_recv in lmdeploy/lmdeploy/pytorch/disagg/conn/engine_conn.pylmdeploy
- CriticalLMdeploy has Remote Code Execution by Pickle Deserialization via zmq_rpc.call_and_response() in InterLM/lmdeploylmdeploy
- CriticalSGLang: Unauthenticated RCE via --enable-custom-logit-processorsglang
- CriticalSGLanG: Multimodal scheduler deserializes untrusted pickle data on 0.0.0.0 ROUTER socketsglang
- Criticaln8n: HTTP Request Node Pagination Prototype Pollution to RCEn8n, n8n, n8n
- Criticaln8n Has an XML Node Prototype Pollution Patch Bypassn8n, n8n, n8n
- CriticalKeras framework vulnerable to deserialization of untrusted datakeras
- CriticalKeras code injection vulnerabilitykeras
- HighKeras: TorchModuleWrapper can deserialize unsafe PyTorch pickle datakeras, keras
- HighKeras: Lambda deserialization can bypass safe mode and execute codekeras, keras
- HighKeras archive extraction utilities allow path traversal and arbitrary file writeskeras
- HighKeras vulnerable to DoS via Malicious .keras Model (HDF5 Shape Bomb Causes Petabyte Allocation in KerasFileEditor)keras, keras
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.