Summary
SGLang up to version 0.5.23 exposes the POST /load_lora_adapter_from_tensors endpoint without requiring authentication, allowing a network-reachable attacker to manipulate the served model. The source indicates a fix is available in commit 7b5fb39.
What happened
The HTTP endpoint POST /load_lora_adapter_from_tensors lacks the @auth_level(AuthLevel.ADMIN_OPTIONAL) decorator applied to its sibling admin endpoints, so it can be invoked without an API key. A network-reachable attacker can load a LoRA adapter from attacker-supplied serialized tensors and thereby manipulate the served model. According to the description, when combined with a separately documented deserialization bypass, this could allow unauthenticated remote code execution as root. It is classified as CWE-862 (missing authorization).
Why it matters
The source (CNA VulnCheck) assigns a CVSS 4.0 score of 8.7, high severity, with vector CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N: network-reachable, no privileges or user interaction required, with high integrity impact. CISA's KEV catalog does not list this vulnerability as exploited, and the source does not state active exploitation. The references include third-party technical material tagged as exploit.
Affected products and versions
sglang (sgl-project): versions <= 0.5.23 (last affected version: 0.5.23). The source lists commit 7b5fb39bb952da5f6da3bb7fe73c671cf449b6fa as unaffected; it does not state a released version number containing the fix.
| Product | Versions | Fixed in |
|---|---|---|
| sgl-project sglang | <= 0.5.23 | — |
| sgl-project sglang | 7b5fb39bb952da5f6da3bb7fe73c671cf449b6fa | 7b5fb39bb952da5f6da3bb7fe73c671cf449b6fa |
Action recommended by the source
According to the source, the fix is in commit 7b5fb39bb952da5f6da3bb7fe73c671cf449b6fa (pull request 49896 of sgl-project/sglang). The source does not state additional mitigations or a fixed version number; readers are advised to consult the vendor's repository.
Fixed in: 7b5fb39bb952da5f6da3bb7fe73c671cf449b6fa
Sources and references
- https://rahulkarne.com/#/cve/CVE-2026-127222 — CVE Program
- https://github.com/rahulreddykarne/CVE-2026-127222-sglang — CVE Program
- https://github.com/sgl-project/sglang/pull/49896 — CVE Program
- https://github.com/sgl-project/sglang/commit/7b5fb39bb952da5f6da3bb7fe73c671cf449b6fa — CVE Program
- https://www.vulncheck.com/advisories/sglang-missing-authorization-via-load-lora-adapter-from-tensors — CVE Program
Weaknesses (CWE): CWE-862
Relevant change history
Published
Advisory published.