CVE-2026-5760 Details
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().
A remote code execution vulnerability has been identified in SGLang versions prior to 0.5.9, specifically within the reranking endpoint (/v1/rerank). This issue arises from the unsandboxed rendering of Jinja2 chat templates, allowing a malicious model file to execute arbitrary Python code on the server. The vulnerability is triggered by loading a GGUF model file containing a crafted tokenizer.chat_template that exploits the template rendering process.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://www.kb.cert.org/vuls/id/915947 | CVE | Third Party Advisory |
| https://github.com/sgl-project/sglang/pull/23660 | [email protected] | Issue TrackingPatch |
| https://github.com/Stuub/SGLang-0.5.9-RCE | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| lmsys sglang | < 0.5.11 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 3, 2026 | Initial Analysis | [email protected] |
| Apr 29, 2026 | CVE Modified | [email protected] |
| Apr 20, 2026 | CVE Modified | CVE |
| Apr 20, 2026 | CVE Modified | CISA-ADP |
| Apr 20, 2026 | New CVE Received | [email protected] |