SGLangのLoRAアダプター読み込みAPIに認可不備の脆弱性、認証なしで操作される恐れ
Summary
SGLang 0.5.23以前のPOST /load_lora_adapter_from_tensorsエンドポイントには認可チェックがなく、APIキーなしでLoRAアダプターを読み込まれる恐れがあります。別に公表されている逆シリアル化の回避と組み合わさると、認証なしでroot権限のリモートコード実行につながる可能性があります。修正はコミット7b5fb39で行われており、利用中の版が0.5.23以前ならこの修正を取り込んでください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
SGLang 0.5.23以前のPOST /load_lora_adapter_from_tensorsエンドポイントには認可チェックがなく、APIキーなしでLoRAアダプターを読み込まれる恐れがあります。別に公表されている逆シリアル化の回避と組み合わさると、認証なしでroot権限のリモートコード実行につながる可能性があります。修正はコミット7b5fb39で行われており、利用中の版が0.5.23以前ならこの修正を取り込んでください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| sgl-projectsglang |
≥ 0.5.8, < 0.5.22→ 0.5.22 |
0.5.22 |
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- package github.com
- web disclosure@vulncheck.com
- web disclosure@vulncheck.com
- web github.com
- web github.com
- web disclosure@vulncheck.com
- web nvd.nist.gov
- web github.com
- web disclosure@vulncheck.com
- web disclosure@vulncheck.com