CVE-2026-5760
CRITICALSGLang - Remote Code Execution via Malicious Tokenizer Chat Template
Title source: llmExploitation Summary
EIP tracks 1 public exploit for CVE-2026-5760. PoCs published by Stuub.
AI-analyzed exploit summary This repository contains a functional exploit for CVE-2026-5760, demonstrating an SSTI-to-RCE vulnerability in SGLang's reranking endpoint due to unsandboxed Jinja2 template rendering. The exploit generates a malicious GGUF model file and triggers arbitrary code execution via the `/v1/rerank` endpoint.
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().
Exploits (1)
This repository contains a functional exploit for CVE-2026-5760, demonstrating an SSTI-to-RCE vulnerability in SGLang's reranking endpoint due to unsandboxed Jinja2 template rendering. The exploit generates a malicious GGUF model file and triggers arbitrary code execution via the `/v1/rerank` endpoint.
References (3)
Scores
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H