CVE-2026-5760

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().
References
Link Resource
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
Configurations

Configuration 1 (hide)

cpe:2.3:a:lmsys:sglang:*:*:*:*:*:*:*:*

History

No history.

Information

Published : 2026-04-20 14:16

Updated : 2026-06-17 10:59


NVD link : CVE-2026-5760

Mitre link : CVE-2026-5760

CVE.ORG link : CVE-2026-5760


JSON object : View

Products Affected

lmsys

  • sglang
CWE
CWE-94

Improper Control of Generation of Code ('Code Injection')