SGLangにおける複数の脆弱性
| Title |
SGLangにおける複数の脆弱性
|
| Summary |
SGLangは、大規模言語モデル(LLM)やマルチモーダルモデルによる推論サーバを構築するためのフレームワークです。SGLangには以下の複数の脆弱性が存在します。 <ul><li>細工されたJinja2テンプレートがGGUFモデルファイルのtokenizer.chat_templateに含まれている場合、/v1/rerankエンドポイントへのアクセス時に、当該テンプレートがサンドボックスを使用せずにレンダリングされるため、任意のコードが実行される可能性がある(CVE-2026-5760)</li><li>マルチモーダル生成ランタイムのスケジューラがバインドするZeroMQのROUTERソケットにおいて、受信メッセージが検証されずにpickle.loads()でデシリアライズされるため、任意のコードが実行される可能性がある(CVE-2026-7301)</li><li>マルチモーダル生成ランタイムの/v1/images/editsと/v1/videosエンドポイントにおいて、アップロードされたファイルの名前が無害化されていないため、パストラバーサルにより任意のファイルが書き込まれる可能性がある(CVE-2026-7302)</li><li>--enable-custom-logit-processorオプションが有効な場合、生成エンドポイントのcustom_logit_processorフィールドに渡されるJSON文字列において、callableプロパティが検証されずにdill.loads()でデシリアライズされるため、任意のコードが実行される可能性がある(CVE-2026-7304)</li></ul>
|
| Possible impacts |
認証されていない攻撃者によって、任意のコードの実行や任意のファイルの書き込みが行われる可能性があります。 |
| Solution |
[アップデートする] 開発者が提供する情報をもとに最新版へアップデートしてください。CVE-2026-5760については、v0.5.11で修正されています。 [ワークアラウンドを実施する] CVE-2026-7301、CVE-2026-7302、CVE-2026-7304については、以下のワークアラウンドを実施することで、脆弱性の影響を軽減することが可能です。 <ul> <li>サービスのインターフェースへのアクセスを制限し、信頼できないネットワークに公開しない</li> <li>ネットワークの分離とアクセス制御を行い、脆弱なエンドポイントを保護する</li> </ul> |
| Publication Date |
May 26, 2026, midnight |
| Registration Date |
May 27, 2026, 12:17 p.m. |
| Last Update |
May 27, 2026, 12:17 p.m. |
Affected System
CVE (情報セキュリティ 共通脆弱性識別子)
その他
Change Log
| No |
Changed Details |
Date of change |
| 1 |
[2026年05月27日] 掲載 |
May 27, 2026, 12:17 p.m. |
NVD Vulnerability Information
CVE-2026-5760
| Summary |
SGLang's reranking endpoint (/v1/rerank) achieves Remote Code Execution (RCE) when a model file containing a malcious tokenizer.chat_template is loaded, as the Jinja2 chat templates are rendered using an unsandboxed jinja2.Environment().
|
| Publication Date |
April 20, 2026, 11:16 p.m. |
| Registration Date |
April 21, 2026, 4:09 a.m. |
| Last Update |
April 21, 2026, 1:16 a.m. |
Related information, measures and tools
Common Vulnerabilities List
CVE-2026-7301
| Summary |
SGLangs multimodal generation runtime scheduler's ROUTER socket binds to 0.0.0.0 by default and contains a sink that calls pickle.loads() on incoming messages, enabling RCE when exposed to the internet.
|
| Publication Date |
May 18, 2026, 9:16 p.m. |
| Registration Date |
May 19, 2026, 4:14 a.m. |
| Last Update |
May 19, 2026, 10:49 p.m. |
Affected software configurations
| Configuration1 |
or higher |
or less |
more than |
less than |
| cpe:2.3:a:lmsys:sglang:0.5.10:-:*:*:*:*:*:* |
|
|
|
|
Related information, measures and tools
Common Vulnerabilities List
CVE-2026-7302
| Summary |
SGLangs multimodal generation runtime is vulnerable to an unauthenticated path traversal vulnerability, allowing an attacker to write arbitrary files anywhere the server process has write access, by including ../ sequences in the upload filename when sent to specific endpoints.
|
| Publication Date |
May 18, 2026, 9:16 p.m. |
| Registration Date |
May 19, 2026, 4:14 a.m. |
| Last Update |
May 19, 2026, 10:43 p.m. |
Affected software configurations
| Configuration1 |
or higher |
or less |
more than |
less than |
| cpe:2.3:a:lmsys:sglang:0.5.10:-:*:*:*:*:*:* |
|
|
|
|
Related information, measures and tools
Common Vulnerabilities List
CVE-2026-7304
| Summary |
SGLangs multimodal generation runtime is vulnerable to unauthenticated remote code execution when the --enable-custom-logit-processor option is enabled, as Python objects loaded via dill.loads() will be deserialized without validation.
|
| Publication Date |
May 18, 2026, 9:16 p.m. |
| Registration Date |
May 19, 2026, 4:14 a.m. |
| Last Update |
May 19, 2026, 10:38 p.m. |
Affected software configurations
| Configuration1 |
or higher |
or less |
more than |
less than |
| cpe:2.3:a:lmsys:sglang:0.5.10:-:*:*:*:*:*:* |
|
|
|
|
Related information, measures and tools
Common Vulnerabilities List