Home
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
github.com/Stuub/SGLang-0.5.9-RCE
