Flowiseで認証なしに任意のOSコマンドを実行される脆弱性
概要
Flowiseのカスタム MCP 機能に、サンドボックスのない遠隔コード実行の脆弱性が見つかりました。細工したリクエストを送られると、任意のOSコマンドを実行され、基盤のコンテナやサーバーを乗っ取られるおそれがあります。影響を受けるのは 2.2.7-patch.1 以前のバージョンで、3.0.6 以降に更新してください。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
flowise という製品で、CVE-2025-71336 という番号がついた弱点 (脆弱性) が見つかりました。
悪い人がインターネット越しに npx のような特定の入り口を狙うことで、製品の中を不正に操作できてしまいます。
悪用されるとシステム全体を乗っ取られる可能性があります。重要度は CVSS スコア 9.8/10 です。
対策: flowise を 3.0.6 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「flowise CVE-2025-71336」を検索してください。
CVE-2025-71336 (flowise) — CWE-78 / CVSS v3 9.8
攻撃ベクター: ネットワーク経由 (リモート攻撃可) / 認証不要 / 被害者操作不要
脆弱箇所: npx / FLOWISE_USERNAME / FLOWISE_PASSWORD / pnpm
修正バージョン: 3.0.6 (即時適用推奨)
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。
flowise に OSコマンドインジェクション (CWE-78) があります。攻撃者は npx を経由して脆弱な処理に到達し、認証なしで悪用できます。
flowise の影響バージョンはベンダーのアドバイザリで確認してください。攻撃箇所: npx / FLOWISE_USERNAME / FLOWISE_PASSWORD / pnpm。
重要度: 最重要 (CVSS 9.8/10)。悪用されるとシステム全体を乗っ取られる可能性があります。
3.0.6 に更新してください。
修正版が未提供時は、影響機能の無効化・WAFルール・ネットワークACLでの遮断を検討。
Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。
対応アクション
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1
影響範囲の特定identify
grep -r 'flowise' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
flowiseを grep し、稼働しているサービス・バージョンを把握する。 -
2
パッチ適用patch
Upgrade flowise to 3.0.6ステージング環境で 3.0.6 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
事後検証verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| npmflowise |
2.2.7-patch.1 以上 3.0.6 未満→ 3.0.6 |
3.0.6 |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
Summary
The Custom MCPs feature is designed to execute OS commands, for instance, using tools like npx to spin up local MCP Servers. However, Flowise's inherent authentication and authorization model is minimal and lacks role-based access controls (RBAC). Furthermore, the default installation of Flowise operates without authentication unless explicitly configured using the FLOWISE_USERNAME and FLOWISE_PASSWORD environment variables.
This combination presents a significant security risk, potentially allowing users on the platform to execute unsandboxed system commands. This can result in Remote Code Execution (RCE) and complete compromise of the running platform container or server.
PoC
-
Follow the provided instructions for running the app using Docker Compose (or other methods of your choosing such as
npx,pnpm, etc):
https://github.com/FlowiseAI/Flowise?tab=readme-ov-file#-docker -
Create a new file named
payload.jsonsomewhere in your machine, with the following data:
{"inputs":{"mcpServerConfig":{"command": "touch","args": ["/tmp/yofitofi"]}},"loadMethod":"listActions"}
- Send the following
curlrequest using thepayload.jsonfile created above with the following command:
curl -XPOST -H "x-request-from: internal" -H "Content-Type: application/json" --data @payload.json "http://localhost:3000/api/v1/node-load-method/customMCP"
- Observe that a new file named
yofitofiis created under/tmpfolder.
Similarily, we can u…
出典: GitHub Security Advisories (Global) NVD GitHub Advisory
参照URL
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- web github.com
- web vulncheck.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com