SGLang auth bypass in LoRA adapter loading endpoint
sgl-project sglang
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| sgl-project sglang |
|
|
Original description
SGLang through 0.5.23, fixed in commit 7b5fb39, contains a missing authorization vulnerability in the POST /load_lora_adapter_from_tensors HTTP endpoint, which lacks the @auth_level(AuthLevel.ADMIN_OPTIONAL) decorator applied to its sibling admin endpoints, allowing unauthenticated network-reachable attackers to invoke it without an API key. Attackers can load a LoRA adapter from attacker-supplied serialized tensors to manipulate the served model, and when combined with a separately documented deserialization bypass, achieve unauthenticated remote code execution as root.
From the CVE record · VulnCheck