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

03 Jun 2026, 13:42

Type Values Removed Values Added
References () https://github.com/Stuub/SGLang-0.5.9-RCE - () https://github.com/Stuub/SGLang-0.5.9-RCE - Exploit, Third Party Advisory
References () https://github.com/sgl-project/sglang/pull/23660 - () https://github.com/sgl-project/sglang/pull/23660 - Issue Tracking, Patch
References () https://www.kb.cert.org/vuls/id/915947 - () https://www.kb.cert.org/vuls/id/915947 - Third Party Advisory
CPE cpe:2.3:a:lmsys:sglang:*:*:*:*:*:*:*:*
First Time Lmsys
Lmsys sglang

29 Apr 2026, 14:16

Type Values Removed Values Added
References
  • () https://github.com/sgl-project/sglang/pull/23660 -

20 Apr 2026, 16:16

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 9.8
CWE CWE-94
References
  • () https://www.kb.cert.org/vuls/id/915947 -

20 Apr 2026, 14:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-04-20 14:16

Updated : 2026-06-03 13:42


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')