SGLang Remote Code Execution Vulnerability via Unsafe Deserialization in update_weights_from_tensor
CVE-2025-10164 · GHSA-9w53-xr52-mwgj · published 2025-09-09 · updated 2025-10-29
- Severity
- Medium
- CVSS score
- 7.3
- Chance of exploitation (EPSS)
- 0.42%
- Fixed in
- 0.5.4
- Exploitation Public proof of concept
- Automatable Yes
- Technical impact Partial
- CISA SSVC
A security flaw has been discovered in lmsys sglang 0.4.6. Affected by this vulnerability is the function main of the file /updateweightsfromtensor. The manipulation of the argument serializednamed_tensors results in deserialization. The attack can be launched remotely. The exploit has been released to the public and may be exploited. The vendor was contacted early about this disclosure but did not respond in any way.
Upgrade sglang to 0.5.4 or later.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| sglang | PyPI | <= 0.5.3 | 0.5.4 |
- 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
- Criticaln8n: HTTP Request Node Pagination Prototype Pollution to RCEn8n, n8n, n8n
- Criticaln8n Has an XML Node Prototype Pollution Patch Bypassn8n, n8n, n8n
- Criticaln8n has XML Node Prototype Pollution that to RCEn8n, n8n, n8n
- Criticaln8n has Prototype Pollution in XML Webhook Body Parser that Leads to RCEn8n, n8n, n8n
- CriticalSGLang: Unauthenticated RCE via --enable-custom-logit-processorsglang
- CriticalSGLanG: Multimodal scheduler deserializes untrusted pickle data on 0.0.0.0 ROUTER socketsglang
- CriticalSGLang's multimodal generation runtime has an unauthenticated path traversal vulnerabilitysglang
- CriticalSGLang's encoder parallel disaggregation system is vulnerable to unauthenticated remote code execution through the disaggregation modulesglang
- CriticalSGLang's multimodal generation module is vulnerable to unauthenticated remote code execution through the ZMQ brokersglang
- HighSGLangs `replay_request_dump.py` contains an insecure pickle.load() without validation and proper deserializationsglang
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.