CVEvulnerability
CVE-2026-5760
9.8 CRITICAL
Official page ↗
- Status
- Analyzed
- Published
- 2026-04-20
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 (134c704f-9b21-4f2e-91b3-4a467353bcc0)
- 9.8 CRITICAL — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-94
Description
SGLang's reranking endpoint (/v1/rerank) achieves Remote Code Execution (RCE) when a model file containing a malcious tokenizer.chat_template is loaded, as the Jinja2 chat templates are rendered using an unsandboxed jinja2.Environment().
Affected configurations
• lmsys sglang (< 0.5.11)
Related
Weakness · CWE (1)
- CWE-94 Improper Control of Generation of Code weakness
References
- https://github.com/Stuub/SGLang-0.5.9-RCE Exploit, Third Party Advisory
- https://github.com/sgl-project/sglang/pull/23660 Issue Tracking, Patch
- https://www.kb.cert.org/vuls/id/915947 Third Party Advisory