CVE-2026-110807
Remote DoS via crafted session_params in SGLang ≤0.5.19 io_struct.py endpoint.
- CVSS 2.1
- CWE-404
- Input Validation and Sanitization
- Remote
A weakness has been identified in sgl-project SGLang up to 0.5.19. Affected by this vulnerability is an unknown functionality of the file python/sglang/srt/managers/io_struct.py of the component generate Endpoint. This manipulation of the argument session_params causes denial of service. The attack is possible to be carried out remotely. The exploit has been made available to the public and could be used for attacks. The project was informed of the problem early through an issue report but has not responded yet.
- CWE
- CWE-404
- CVSS base score
- 2.1
- Published
- 2026-10-14
- OWASP
- A05 Security Misconfiguration
- Orthogonal defect classification
- Checking
- Code defect classification
- Missing Check
- Category
- Input Validation and Sanitization
- Subcategory
- Insecure Parsing or Deserialization
- Accessibility scope
- Remote
- Impact
- Denial of Service (DoS)
- Affected component
- Python
Solution
Upgrade sgl-project SGLang to version 0.5.20 or later, which patches the remote DoS vulnerability in python/sglang/srt/managers/io_struct.py.
Vulnerable code sample
import json
class IOManager:
def __init__(self, session_params: str):
# VULNERABLE: unsafe eval of user-provided session_params leading to DoS
self.session = eval(session_params) # expects a dict string
def get_param(self, key):
return self.session.get(key)
def serialize(self):
return json.dumps(self.session)Patched code sample
import json
import ast
class IOManager:
def __init__(self, session_params: str):
# FIX: safe parsing of session_params using ast.literal_eval
self.session = ast.literal_eval(session_params) # expects a dict string
def get_param(self, key):
return self.session.get(key)
def serialize(self):
return json.dumps(self.session)Published fix
Public sources link this CVE to the changes below. The code samples above were generated to illustrate the defect; these links lead to the code the project actually changed.
- [Fix] session: Wrap SessionParams TypeError to ValueError and add validation unit tests (sgl-project/sglang)
python/sglang/srt/managers/io_struct.py,python/sglang/srt/managers/tokenizer_manager.py · TokenizerManager._create_tokenized_object
Cite this entry
@misc{vaitp:cve2026110807,
title = {{Remote DoS via crafted session_params in SGLang ≤0.5.19 io_struct.py endpoint.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-110807},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-110807/}}
}
Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.
The supreme art of war is to subdue the enemy without fighting.
Sun Tzu – “The Art of War”
:: Shaping the future through research and ingenuity ::
