New API で 0.0.0.0 経由のSSRF filter回避により内部サーバーへ要求される
概要
LLMゲートウェイ「New API」の 0.11.9-alpha.1 以前では、SSRF対策で遮断されない 0.0.0.0 を画像やファイルのURLに指定することで、サーバーからlocalhostへHTTPリクエストを送られる脆弱性が見つかっています。有効なAPIトークンを持つ一般ユーザーであれば悪用でき、AWS/Bedrock Claudeアダプター経由では取得内容が応答に含まれるおそれがあります。修正版は公開時点で確認されていないため、最新の情報を確認してください。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
github.com/QuantumNous/new-api という製品で、CVE-2026-42339 という番号がついた弱点 (脆弱性) が見つかりました。
悪い人がインターネット越しに POST /v1/chat/completions のような特定の入り口を狙うことで、製品の中を不正に操作できてしまいます。
データの不正な改ざんを許す可能性があります。重要度は CVSS スコア 7.1/10 です。
対策: github.com/QuantumNous/new-api を 0.9.0.5 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「github.com/QuantumNous/new-api CVE-2026-42339」を検索してください。
CVE-2026-42339 (github.com/QuantumNous/new-api) — CWE-918 / CVSS v3 7.1
攻撃ベクター: ネットワーク経由 (リモート攻撃可) / 被害者操作不要
脆弱箇所: POST /v1/chat/completions / image_url.url / file.file_data / video_url
修正バージョン: 0.9.0.5 (即時適用推奨)
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。
github.com/QuantumNous/new-api に SSRF (サーバー側リクエスト偽造) (CWE-918) があります。攻撃者は POST /v1/chat/completions を経由して脆弱な処理に到達できます。
github.com/QuantumNous/new-api の影響バージョンはベンダーのアドバイザリで確認してください。攻撃箇所: POST /v1/chat/completions / image_url.url / file.file_data / video_url。
重要度: 重要 (CVSS 7.1/10)。データの不正な改ざんを許す可能性があります。
0.9.0.5 に更新してください。
修正版が未提供時は、影響機能の無効化・WAFルール・ネットワークACLでの遮断を検討。
Webサーバ・プロキシ・WAFのアクセスログで POST /v1/chat/completions への異常リクエスト (不正な認証ヘッダ、SQL構文)を検索。 依存ファイル (package-lock.json/requirements.txt/go.sum) で github.com/QuantumNous/new-api のバージョンを横断確認。
対応アクション
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1
影響範囲の特定identify
grep -r 'github.com/QuantumNous/new-api' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/QuantumNous/new-apiを grep し、稼働しているサービス・バージョンを把握する。 -
2
ログでの侵入兆候検索detect
grep 'POST /v1/chat/completions' /var/log/nginx/access.log | grep -E '(unusual_payload|sqli_pattern)'アクセスログで
POST /v1/chat/completionsへの異常なリクエスト (不正な認証ヘッダ・SQLメタ文字)を過去 30〜90日分捜索。WAF/SIEM があれば該当パスのアラート発火履歴を確認。 -
3
パッチ適用patch
Upgrade github.com/QuantumNous/new-api to 0.9.0.5ステージング環境で 0.9.0.5 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 2 で見つけた異常検知の続報チェックを含めること。
-
4
事後検証verify
Replay attack against POST /v1/chat/completions on staging to confirm patch closes the vectorパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 2 と同じログクエリでアラート再発が無いか継続監視。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| gogithub.com/QuantumNous/new-api |
0.11.9-alpha.1 以前→ 記載なし |
記載なし |
この記録には修正版の版が載っていません。修正版の有無と版は、本文か参照URLのベンダーの勧告で確かめてください。
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
New API is a large language mode (LLM) gateway and artificial intelligence (AI) asset management system. In versions 0.11.9-alpha.1 and prior, the SSRF protection introduced in v0.9.0.5 (CVE-2025-59146) and hardened in v0.9.6 (CVE-2025-62155) does not block the unspecified address 0.0.0.0. A regular (non-admin) user holding any valid API token can send a multimodal request to /v1/chat/completions, /v1/responses, or /v1/messages with 0.0.0.0 as the image/file URL host, bypassing the private-IP filter and causing the server to issue HTTP requests to localhost. This constitutes at minimum a blind SSRF; when the request is routed through an AWS/Bedrock Claude adaptor, the fetched content is inlined into the model response, upgrading it to a full-read SSRF. At time of publication, there are no publicly available patches.
出典: NIST National Vulnerability Database NVD GitHub Advisory
参照URL
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- web github.com