top of page
perceptive_background_267k.jpg

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 …

Published:

19 April 2026 at 22:00:00

Alert date:

20 April 2026 at 17:02:28

Source:

nvd.nist.gov

Click to open the original link from this advisory

Web Technologies, Emerging Technologies

SGLang's reranking endpoint (/v1/rerank) contains a Remote Code Execution vulnerability when processing malicious model files. The vulnerability occurs when a model file contains a malicious tokenizer.chat_template that gets processed through an unsandboxed Jinja2 environment. This allows attackers to achieve RCE by crafting malicious Jinja2 templates that are rendered without proper sandboxing controls. The vulnerability affects SGLang version 0.5.9 and potentially other versions. Proof of concept code and detailed vulnerability information are available through public repositories.

Technical details

Mitigation steps:

Affected products:

SGLang

Related links:

Related CVE's:

Related threat actors:

IOC's:

This article was created with the assistance of AI technology by Perceptive.

© 2025 by Perceptive Security. All rights reserved.

email: info@perceptivesecurity.com

Disclaimer: Deze website toont informatie afkomstig van externe bronnen. Perceptive aanvaardt geen verantwoordelijkheid voor de inhoud, juistheid of volledigheid van deze informatie.

bottom of page