PyPA Advisory Database
PYSEC-2026-535
SGLang: Unauthenticated RCE via --enable-custom-logit-processor
Details
SGLang's multimodal generation runtime is vulnerable to unauthenticated remote code execution when the --enable-custom-logit-processor option is enabled, as Python objects loaded via dill.loads() will be deserialized without validation.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | sglang | From 0.4.1.post7 up to and including 0.5.12 |