【KEV】Berriai litellm に SQLインジェクション (CVE-2026-42208)
概要
Berriai litellm に SQLインジェクション (CVE-2026-42208) が存在。悪用されるとシステム全体を乗っ取られる可能性があります。POST /chat/completions 経由で攻撃可能。CISA KEV登録済 — 実環境で悪用が確認されている。対策: >=1.83.7 以上に更新。
原文の説明
取得元が公開している説明をそのまま載せています (多くは英語)。
Impact
A database query used during proxy API key checks mixed the caller-supplied key value into the query text instead of passing it as a separate parameter. An unauthenticated attacker could send a specially crafted Authorization header to any LLM API route (for example POST /chat/completions) and reach this query through the proxy's error-handling path.
An attacker could read data from the proxy's database and may be able to modify it, leading to unauthorised access to the proxy and the credentials it manages.
Patches
Fixed in 1.83.7. The caller-supplied value is now always passed to the database as a separate parameter. Upgrade to 1.83.7 or later.
Workarounds
If upgrading is not immediately possible, set disable_error_logs: true under general_settings. This removes the path through which unauthenticated input reaches the vulnerable query.
References
- Patched release:
v1.83.7-stable
Discovery Credit: Tencent YunDing Security Lab
出典: CISA Known Exploited Vulnerabilities NVD GitHub Advisory CISA KEV
AI要約
外部の AI が作成した要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
BerriAI LiteLLMというシステムで、データベースへの不正なアクセスが可能になる問題が見つかりました。これにより、外部から重要な情報を盗み取られる危険性があります。この問題は、特にAPIのキー確認時に発生しますので、システムの更新が重要です。すぐに更新できない場合は、一時的な対策として設定を変更することでリスクを減らすことが可能です。
BerriAI LiteLLMにはSQLインジェクションの影響を受ける脆弱なエンドポイントがあり、POST /chat/completionsのAPIキー確認時にAuthorizationヘッダが使用されます。これにより攻撃者はプロキシのデータベースを読み取ったり変更したりできます。この脆弱性は、バージョン1.81.16から<1.83.7に存在し、バージョン1.83.7で修正されました。回避策としては、general_settings内でdisable_error_logs: trueを設定する方法があります。CVSSスコア9.8により、リモートから攻撃可能であり、ユーザーの操作は不要です。この脆弱性はTencent YunDing Security Labによって発見されました。
Berriai litellm に SQLインジェクション (CWE-89) があります。攻撃者は POST /chat/completions を経由して脆弱な処理に到達し、認証なしで悪用できます。
Berriai litellm のうち 影響範囲: >=1.81.16, <1.83.7。攻撃箇所: POST /chat/completions / POST /team/permissions_bulk_update / Authorization / general_settings。
重要度: 最重要 (CVSS 9.8/10)。悪用されるとシステム全体を乗っ取られる可能性があります CISA KEV登録済 — 既に実環境で悪用が確認されているため最優先で対応すること。
>=1.83.7 に更新してください。(修正前: >=1.81.16, <1.83.7 該当バージョンが本番稼働中なら直ちに更新計画を立案)
暫定回避: set disable_error_logs: true under general_settings.
Webサーバ・プロキシ・WAFのアクセスログで POST /chat/completions への異常リクエスト (不正な認証ヘッダ、SQL構文)を検索。 依存ファイル (package-lock.json/requirements.txt/go.sum) で litellm のバージョンを横断確認。
類似する過去の事例 過去のCVE/インシデントから類似事例を抽出
Another significant SQL injection vulnerability affecting authorization processes in similar systems.
Example of a SQL injection vulnerability exploited via an API header.
Historical highlight of the impact SQL injection can have on large systems.
もし自社で起きたら 業務シナリオごとの想定影響
Unauthorized read/write access to databases leading to sensitive business data exposure.
Potential breach of PII, leading to regulatory fines and damage to client trust.
Compromised infrastructure that leads to operational disruptions and data leaks.
Immediate upgrade to patched version 1.83.7 and review error logging configurations.
対応アクション
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1影響範囲の特定 identify
grep -r 'litellm' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
litellmを grep し、稼働しているサービス・バージョンを把握する。 -
2バージョン照合 verify
Confirm if version satisfies `>=1.81.16, <1.83.7`Step 1 で見つかったバージョンが影響範囲
>=1.81.16, <1.83.7に該当するか照合。本番で稼働中ならインシデント扱い。 -
3ログでの侵入兆候検索 detect
grep 'POST /chat/completions' /var/log/nginx/access.log | grep -E '(unusual_payload|sqli_pattern)'アクセスログで
POST /chat/completionsへの異常なリクエスト (不正な認証ヘッダ・SQLメタ文字)を過去 30〜90日分捜索。WAF/SIEM があれば該当パスのアラート発火履歴を確認。 -
4インシデント宣言検討 escalate
Notify SOC / on-callCISA KEV登録済 = 実環境で悪用が観測されている。Step 3 で兆候があればインシデント対応宣言、無くてもパッチ適用までWAF強化を最優先で。
-
5暫定回避策の適用 mitigate
set `disable_error_logs: true` under `general_settings`.パッチが適用されるまでの応急処置として、set
disable_error_logs: trueundergeneral_settings. を実施。回避策の副作用 (機能低下) を確認した上で。 -
6パッチ適用 patch
Upgrade litellm to >=1.83.7ステージング環境で >=1.83.7 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 3 で見つけた異常検知の続報チェックを含めること。
-
7事後検証 verify
Replay attack against POST /chat/completions on staging to confirm patch closes the vectorパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 3 と同じログクエリでアラート再発が無いか継続監視。
影響パッケージ
参照URL
- advisory security.access.redhat.com
- web nvd.nist.gov
- web github.com
- web github.com
- web cisa.gov
- web github.com
- web github.com
- web access.redhat.com
- web bugzilla.redhat.com
- web pypi.org
- web github.com