Description
SGLang 0.5.10 through 0.5.22 contains a code injection vulnerability in _evaluate_filter() that allows remote attackers to execute Python code by escaping the eval() sandbox through re.search __globals__. Attackers can send a crafted filter expression to the unauthenticated /dumper/configure endpoint when DUMPER_SERVER_PORT is set, running code in the scheduler process on the next forward pass.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| sgl-project | sglang | 0.5.10 – ≤ 0.5.22 | — |
References
- https://github.com/sgl-project/sglang/issues/44188 issue-tracking
- https://github.com/sgl-project/sglang/blob/v0.5.22/python/sglang/srt/debug_utils/dumper.py#L1309-L1320 technical-description
- https://github.com/sgl-project/sglang/blob/v0.5.22/python/sglang/srt/debug_utils/dumper.py#L1380-L1401 technical-description
- https://github.com/sgl-project/sglang product
- VulnCheck Advisory: SGLang 0.5.10 through 0.5.22 Code Injection via Debug Dumper Filter third-party-advisory