Home 8f3097e
affected
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().
Problem types
CWE-94: Improper Control of Generation of Code ('Code Injection')
Product status
References
www.kb.cert.org/vuls/id/915947
github.com/Stuub/SGLang-0.5.9-RCE
github.com/sgl-project/sglang/pull/23660