Summary
CVE-2026-127222 is a missing authorization vulnerability in SGLang’s POST /load_lora_adapter_from_tensors endpoint. Per the CVE record, an unauthenticated network attacker can call the endpoint and, by loading a malicious LoRA adapter combined with a deserialization bypass, achieve remote code execution as root. The CVSS v4.0 score is 8.7 (High).
Technical details
- Root cause: the endpoint lacks the
@auth_level(AuthLevel.ADMIN_OPTIONAL)decorator applied to its sibling admin endpoints. Authorization is opt-in by decorator, so undecorated routes fall back to the least restrictive level. - Trigger conditions: a reachable SGLang HTTP server. The researcher write-up states that with only
--admin-api-keyset the endpoint is reachable with no credential. With both--api-keyand--admin-api-keyset, the normal key can reach the admin-only endpoint. With only--api-keyset, no bypass was observed. - Attack vector: network, no authentication, no user interaction.
- Impact: per the CVE record, loading a malicious LoRA adapter plus a deserialization bypass leads to unauthenticated remote code execution as root. The researcher write-up notes that the default bind is localhost and that exposure depends on the deployment and on whether LoRA is enabled.
Affected software
- SGLang versions through 0.5.23, per the CVE record.
- A researcher PoC repository describes the affected range as 0.5.8 through 0.5.21, with 0.5.22 and later fixed. This differs from the CVE record. Verify against your deployed version and the fix commit.
Severity
- CVSS v4.0: 8.7 (High),
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 - CVSS v3.1 (as listed in the CVE record): 7.5 (High),
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Mitigation and recommended actions
- Immediate: upgrade to a SGLang build that includes the fix (commit
7b5fb39bb952da5f6da3bb7fe73c671cf449b6fa, patch PR #49896). The researcher write-up says release 0.5.22 or later has it. The CVE record lists versions through 0.5.23 as affected, so confirm your build contains the fix commit. - If you can’t patch immediately: do not expose SGLang servers to untrusted networks. Restrict access with a firewall, reverse proxy, or network ACL, and block
/load_lora_adapter_from_tensorsat the proxy. Review deployments that run with LoRA enabled and with--admin-api-keyset.

