SGLang: Unauthenticated RCE via --enable-custom-logit-processor
CVE-2026-7304 · GHSA-36m8-w8qf-g76p · published 2026-05-18 · updated 2026-05-29
- Severity
- Critical
- CVSS score
- 9.8
- Chance of exploitation (EPSS)
- 0.58%
- Fixed in
- No fix yet
- Exploitation No known exploitation
- Automatable Yes
- Technical impact Total
- CISA SSVC
SGLang's multimodal generation runtime is vulnerable to unauthenticated remote code execution when the --enable-custom-logit-processor option is enabled, as Python objects loaded via dill.loads() will be deserialized without validation.
No fixed release is listed yet for sglang. Follow the source advisory for updates, and until one ships:
General guidance from ShieldPi, not a vendor fix
- Command or code injection. Remove or disable the affected server or tool, or run it in a sandbox with no secrets in its environment.
- Unsafe deserialization. Do not let it load files, models or data from sources you do not trust, and keep its RPC and socket ports reachable only from localhost or hosts you trust.
- Missing or bypassable authentication. Do not expose it on a network others can reach, and put authentication you control in front of it, such as an authenticating proxy or a VPN. Binding it to localhost is not enough on its own: a web page open in your browser can still reach it, so require a token as well.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| sglang | PyPI | >= 0.4.1.post7, <= 0.5.12 | No fix yet |
- 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: 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
- MediumSGLang has an Improper Input Validation/Injection Issuesglang
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.