CVE-2026-127222

SGLang's tensor LoRA route could bypass the intended administrator key

sgl-project · sglang

First documented disclosure · Review checkpoint

Summary

A missing route decorator applied ordinary-key authorization to an administrative action.

Severity and exploitation evidence

High · 8.7/10 · CVSS 4.0. Severity source.

Exploitation not established: Malicious exploitation remains unverified in the reviewed originals. A demonstration or absence from KEV does not establish exploitation status.

Exploitation evidence source

Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.

How the weakness works

load_lora_adapter_from_tensors resolved to the NORMAL authorization level rather than ADMIN_OPTIONAL.

Conditions required

LoRA enabled and a reachable server. With only an admin key, no credential is needed; with both keys, the ordinary API key suffices. An ordinary API key alone is not bypassed.

Potential impact

An unauthorized caller can load attacker-chosen adapters and alter model behavior. Code execution requires a separate deserialization weakness and is not established by this authorization demonstration.

Affected versions and configurations

0.5.8 through 0.5.21 according to the researcher and tagged-source checks. The CNA instead lists through 0.5.23; its broader range conflicts with inspected 0.5.22 and 0.5.23 source.

Fix and mitigation status

0.5.22 contains the missing ADMIN_OPTIONAL decorator; independently inspected 0.5.23 also contains it. Later commit 7b5fb39 imposes stronger ADMIN_FORCE policy.

Practical next steps

Apply the issue-specific correction: 0.5.22 contains the missing ADMIN_OPTIONAL decorator; independently inspected 0.5.23 also contains it. Later commit 7b5fb39 imposes stronger ADMIN_FORCE policy. Restrict the affected tool or endpoint until the correction is deployed.

Operating lesson

Make administrative routes fail closed when authorization metadata is absent.

Evidence and limits

Earliest reviewed public evidence is issue 30165, created July 5, 2026 at 14:34:29 UTC, which explicitly describes the missing decorator and admin-key-only bypass. June 2 is an earlier private report mentioned by its author, not a verified public disclosure date. August 11 PR 34370 proposes ADMIN_OPTIONAL but is unmerged in the reviewed API; tagged 0.5.22 and 0.5.23 source independently establish the decorator correction. November 11 PR 49896 proposes later ADMIN_FORCE strengthening. The November 17 researcher report supplies configuration-specific impact and bounds. The CNA published November 18 lists through 0.5.23, conflicting with those tagged-source checks. CVSS 4.0 8.7 is the VulnCheck CNA assessment. Code execution requires a separate deserialization weakness; no explicit evidence maps this authorization CVE to the NEAR AI incident. Undated supporting tagged source: https://github.com/sgl-project/sglang/blob/v0.5.22/python/sglang/srt/entrypoints/http_server.py and https://github.com/sgl-project/sglang/blob/v0.5.23/python/sglang/srt/entrypoints/http_server.py.

Sources