LMDeploy: Arbitrary code execution via hardcoded trust_remote_code=True in lmdeploy model initialization
CVE-2026-46432 · GHSA-m549-qq94-fvhg · published 2026-05-21 · updated 2026-06-10
- Severity
- High
- CVSS score
- 7.8
- Chance of exploitation (EPSS)
- 0.14%
- Fixed in
- 0.13.0
- Exploitation Public proof of concept
- Automatable No
- Technical impact Total
- CISA SSVC
An attacker who can control the model path used by an lmdeploy deployment can execute arbitrary Python code during model initialization. The attacker may be able to: Read files accessible to the lmdeploy process. Access environment variables, model provider credentials, HuggingFace tokens, cloud credentials, and API keys. Modify model-serving behavior or tamper with responses. Execute arbitrary operating-system commands. Access request data or internal service credentials available to the serving process. Cause denial of service by crashing or destabilizing the serving daemon. Pivot to internal services reachable from the lmdeploy host or container.
Upgrade lmdeploy to 0.13.0 or later.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| lmdeploy | PyPI | < 0.13.0 | 0.13.0 |
- CriticalUnauthenticated Remote Code Execution in Langflow via Public Flow Build EndpointlangflowExploited
- CriticalRay is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding AttackrayExploited
- CriticalLangflow Unauth RCElangflow, langflow-baseExploited
- HighLiteLLM: Authenticated command execution via MCP stdio test endpointslitellmExploited
- CriticalMLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifacmlflow
- CriticalAgno: Arbitrary code execution via `eval()` on `field_type` in `FunctionCall`agno
- 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
- HighLMDeploy has an SSRF bypasslmdeploy
- HighLMDeploy vulnerable to arbitrary code execution via eval() of untrusted quant_dtype in model config loadinglmdeploy
- Highlmdeploy: Hardcoded trust_remote_code=True is an implicit unsafe remote-code load path with no user opt-outlmdeploy
- HighLMDeploy has Server-Side Request Forgery (SSRF) via Vision-Language Image Loadinglmdeploy
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.