Categories: Insur. Cyber

SGLang CVE-2026-5760 (CVSS 9.8) Enables RCE via Malicious GGUF Model Files

[ad_1]

Ravie LakshmananApr 20, 2026Open Source / Server Security

A critical security vulnerability has been disclosed in SGLang that, if successfully exploited, could result in remote code execution on susceptible systems.

The vulnerability, tracked as CVE-2026-5760carries a CVSS score of 9.8 out of 10.0. It has been described as a case of command injection leading to the execution of arbitrary code.

SGLang is a high-performance, open-source serving framework for large language models and multimodal models. The official GitHub project has been forked over 5,500 times and starred 26,100 times.

According to the CERT Coordination Center (CERT/CC), the vulnerability impacts the reranking endpoint « /v1/rerank, » allowing an attacker to achieve arbitrary code execution in the context of the SGLang service by means of a specially crafted GPT-Generated Unified Format (GGUF) model file.

« An attacker exploits this vulnerability by creating a malicious GPT Generated Unified Format (GGUF) model file with a crafted tokenizer.chat_template parameter that contains a Jinja2 server-side template injection (SSTI) payload with a trigger phrase to activate the vulnerable code path, » CERT/CC said in an advisory released today.

« The victim then downloads and loads the model in SGLang, and when a request hits the « /v1/rerank » endpoint, the malicious template is rendered, executing the attacker’s arbitrary Python code on the server. This sequence of events enables the attacker to achieve remote code execution (RCE) on the SGLang server. »

Per security researcher Stuart Beck, who discovered and reported the flawthe underlying issue stems from the use of jinja2.Environment() without sandboxing instead of ImmutableSandboxedEnvironment. This, in turn, enables a malicious model to execute arbitrary Python code on the inference server.

The entire sequence of actions is as follows –

  • An attacker creates a GGUF model file with a malicious tokenizer.chat_template containing a Jinja2 SSTI payload
  • The template includes the Qwen3 reranker trigger phrase to activate the vulnerable code path in « entrypoints/openai/serving_rerank.py »
  • Victim downloads and loads the model in SGLang from sources like Hugging Face
  • When a request hits the « /v1/rerank » endpoint, SGLang reads the chat_template and renders it with jinja2.Environment()
  • The SSTI payload executes arbitrary Python code on the server

It’s worth noting that CVE-2026-5760 falls under the same vulnerability class as CVE-2024-34359 (aka Llama Drama, CVSS score: 9.7), a now-patched critical flaw in the llama_cpp_python Python package that could have resulted in arbitrary code execution. The same attack surface was also rectified in vLLM late last year (CVE-2025-61620CVSS score: 6.5).

« To mitigate this vulnerability, it is recommended to use ImmutableSandboxedEnvironment instead of jinja2.Environment() to render the chat templates, » CERT/CC said. « This will prevent the execution of arbitrary Python code on the server. No response or patch was obtained during the coordination process. »


[ad_2]
Source link
nabeelhassan565@gmail.com

Share
Published by
nabeelhassan565@gmail.com

Recent Posts

Trump Bought Stock in Eli Lilly as His Policies Gave the Drugmaker a Big Boost, Documents Show

[ad_1] President Donald Trump has long bantered about GLP-1s, the breakthrough medicines that have changed…

6 mois ago

State high court revives claims against former insurance agency staff

[ad_1] Relation Insurance scored a partial victory Friday when a state high court revived claims…

6 mois ago

Acrisure to Cut 2,250 Employees, Citing Advances in Technology and AI

[ad_1] Acrisure’s CEO told employees that about 2,250 of them won’t be with the company…

6 mois ago

First VPN Dismantled in Global Takedown Over Use by 25 Ransomware Groups

[ad_1] Authorities in Europe and North America have announced the dismantling of a criminal virtual…

6 mois ago

Everything you need to know about white hair: age, causes, maintenance, coloring

[ad_1] THE first white hair often worry. They sometimes appear as early as the thirties,…

6 mois ago

Lawmakers Demand Answers as CISA Tries to Contain Data Leak – Krebs on Security

[ad_1] Lawmakers in both houses of Congress are demanding answers from the U.S. Cybersecurity &…

6 mois ago