Skip to content
Friday, October 16, 2026AboutContactRSS
Vulnerabilities

SGLang Code Injection Flaw Allows Remote Execution in Scheduler

A critical vulnerability in SGLang versions through 0.5.22 enables unauthenticated attackers to execute arbitrary Python code via a crafted filter expression.

Updated with new details.
Illustration: A sleek black server chassis sits open on a workbench, revealing intricate circuit boards and cooling fans.
AI-generated illustration: Threat Times

Key points

  • CVE-2026-111391 is rated CVSS 9.2, indicating a critical severity level for remote code execution.
  • The flaw exists in the _evaluate_filter() function and allows escaping the eval() sandbox using re.search __globals__.
  • Attackers can exploit the unauthenticated /dumper/configure endpoint if the DUMPER_SERVER_PORT environment variable is configured.

The open-source inference engine SGLang contains a critical code injection vulnerability that allows remote attackers to execute arbitrary Python code. This flaw, identified as CVE-2026-111391, affects versions of the software up to and including 0.5.22. The vulnerability enables an attacker to bypass security restrictions and run commands within the scheduler process.

At a glance

CVE
CVE-2026-111391
Product
sgl-project sglang
CVSS
9.2 Critical
Weakness
CWE-95
Exploited
No known exploitation

According to the National Vulnerability Database record, the issue stems from the _evaluate_filter() function. Attackers can exploit this by sending a crafted filter expression to the unauthenticated /dumper/configure endpoint. This action is possible only when the DUMPER_SERVER_PORT environment variable is set on the server. The exploit allows the attacker to escape the eval() sandbox by leveraging the re.search __globals__ attribute.

Technical Context and Impact

The vulnerability is classified with a CVSS score of 9.2, which falls into the critical severity range. It is categorized under CWE-95, which denotes improper neutralization of directives during data evaluation. This specific weakness allows an attacker to inject malicious code that is then executed by the application.

The exploit targets the scheduler process of the SGLang engine. Once the crafted filter expression is processed, the malicious Python code runs during the next forward pass. This means the attacker does not need to authenticate to the system to trigger the execution. The unauthenticated nature of the endpoint significantly increases the risk of exploitation.

This incident follows a trend of severe vulnerabilities in software infrastructure. As Threat Times reported on 2026-10-16, a critical code injection flaw was found in The Grid WordPress plugin. Similarly, on 2026-10-15, Threat Times reported a critical server-side template injection flaw in SolusVM 2. These reports highlight the ongoing risks of code injection vulnerabilities in widely used software components.

Affected Systems and Scope

The vulnerability affects all versions of SGLang from 0.5.10 through 0.5.22. The sgl-project maintains this software, which is used for large language model inference. Any deployment using these versions is potentially at risk if the specific configuration conditions are met.

The primary condition for exploitation is the presence of the DUMPER_SERVER_PORT setting. If this environment variable is not set, the specific attack vector via the /dumper/configure endpoint is likely unavailable. However, administrators cannot assume their systems are safe without verifying this configuration. The remote nature of the attack means it can be initiated from any network location with access to the port.

What should you do?

Administrators should immediately verify if their SGLang installations are running versions between 0.5.10 and 0.5.22. If so, they must check whether the DUMPER_SERVER_PORT environment variable is configured on their servers. If the variable is set, the risk of remote code execution is active.

Since no patch or update has been confirmed in the source material, the immediate mitigation strategy involves configuration changes. Organizations should consider disabling the DUMPER_SERVER_PORT if it is not strictly required for their operations. This removes the unauthenticated endpoint that attackers exploit to inject code.

Network segmentation can also help limit exposure. Restricting access to the port associated with the dumper server can prevent remote attackers from reaching the vulnerable endpoint. Monitoring logs for unusual activity on this endpoint may also provide early warning of exploitation attempts.

Background: Large language models

Large language models are a specific type of neural network trained on text. Generative AI is the broader umbrella term for any system that creates new content, including images and code. Not all generative AI uses large language models, but most modern text generators do.

Read the full guide: Large Language Models vs Generative AI: The Distinction and Security Implications

What to do and how to stay safe: SGLang

  • Audit SGLang installations to identify if versions 0.5.10 through 0.5.22 are currently in use.
  • Check server configurations to determine if the DUMPER_SERVER_PORT environment variable is set.
  • Disable the DUMPER_SERVER_PORT if it is not essential for your inference workflows.
  • Restrict network access to the dumper server port to prevent unauthenticated remote connections.

Step-by-step guide: Risk-Based Vulnerability Management: Prioritize Fixes by Actual Danger

General security guidance from the Threat Times newsroom. It is not confirmed advice from the organisations named in this story.

Frequently asked questions

What is the CVSS score for CVE-2026-111391?

The CVSS score for CVE-2026-111391 is 9.2, which is rated as critical severity.

Which versions of SGLang are affected by this vulnerability?

SGLang versions 0.5.10 through 0.5.22 are affected by this code injection vulnerability.

Is authentication required to exploit this flaw?

No, the exploit targets an unauthenticated endpoint, specifically the /dumper/configure path.

Sources

  1. CVE Program
SGLangCVE-2026-111391code injectionsgl-projectCVSS 9.2
Related articles