SGLang Arbitrary File Write Vulnerability via Unauthenticated Path Traversal

Vulnerability

A path traversal vulnerability allowing unauthenticated attackers to write arbitrary files has been identified in SGLang's multimodal generation runtime, versions 0.5.5 and later. The vulnerability arises from the runtime's file upload handling on OpenAI-compatible image and video editing endpoints. The issue allows attackers to exploit the upload filename by including '../' sequences to traverse out of the designated uploads directory and into any location where the server process has write permissions.

Impact

Exploitation of this vulnerability could lead to unauthorized file creation or modification on the server, potentially allowing for further exploitation or disruption of services.

Reproduction

To reproduce this vulnerability, upload a file through the '/v1/images/edits' or '/v1/videos' endpoints, including a filename that contains '../' sequences. This will traverse out of the uploads directory and write the file to a location accessible by the server process.

Added: May 18, 2026, 12:20 PM
Updated: May 18, 2026, 12:20 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
8.4
remediation
0.0
relevance
8.5
threat
4.8
urgency
2.9
incentive
4.2

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.