Vulnerability 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().
CVSS Score
CRITICAL
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Lmsys | Sglang | < 0.5.11 |
Related Weaknesses (CWE)
References
- https://github.com/Stuub/SGLang-0.5.9-RCEExploitThird Party Advisory
- https://github.com/sgl-project/sglang/pull/23660Issue TrackingPatch
- https://www.kb.cert.org/vuls/id/915947Third Party Advisory
FAQ
What is CVE-2026-5760?
CVE-2026-5760 is a vulnerability with a CVSS score of 9.8 (CRITICAL). 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...
How severe is CVE-2026-5760?
CVE-2026-5760 has been rated CRITICAL with a CVSS base score of 9.8/10. This is considered a critical vulnerability requiring immediate attention.
Is there a patch for CVE-2026-5760?
Check the references section above for vendor advisories and patch information. Affected products include: Lmsys Sglang.