langflow に OSコマンドインジェクション (CVE-2026-105697)
概要
langflow に OSコマンドインジェクション (CVE-2026-105697) が存在。悪用されるとシステム全体を乗っ取られる可能性があります。PATCH /api/v2/mcp/servers/{server_name} 経由で攻撃可能。対策: 1.10.3 以上に更新。
原文の説明
取得元が公開している説明をそのまま載せています (多くは英語)。
Summary
Before Langflow 1.10.3, the MCP stdio transport launched whatever command / args a user put in an MCP server configuration, with no allowlist and (before 1.10.3) wrapped in bash -c "exec {command} ...". Any user able to reach the MCP server settings ("Settings → MCP Servers → Add MCP Server", POST/PATCH /api/v2/mcp/servers/{server_name}) or to build a flow with the MCP Tools component could add a "server" whose command is an arbitrary OS command (touch, rm -rf, a reverse shell, ...). The command runs on the Langflow host as the Langflow process user as soon as Langflow tries to connect to the server (listing servers, loading tools, running the flow) — even when the UI then reports that the stdio server failed to start.
With the default LANGFLOW_AUTO_LOGIN=true, GET /api/v1/auto_login hands out a token without credentials, so on an exposed instance running the default configuration this is reachable without an account. AUTO_LOGIN is documented as a development-only setting; with it disabled, any authenticated (non-admin) user can exploit it.
The issue was fixed in two steps and is fully fixed in Langflow 1.10.3 (and 1.11.0+):
- 1.9.0 — #12290 added a command allowlist and argument/env validation to the REST model (
MCPServerConfig), blocking the "Add MCP Server" vector reported here. - 1.10.3 — #14036 applied the same policy at the execution sink (
lfx.base.mcp.util), including configs embedded in flows / tweaks and the final…
出典: NIST National Vulnerability Database NVD GitHub Advisory
自動生成の要約
取得元のデータ (CVSS・CWE・影響バージョンなど) から SecPulse が定型文で組み立てた要約です。AI は使っていません。正確な内容は下の原文と参照URLで確認してください。
langflow という製品で、CVE-2026-105697 という番号がついた弱点 (脆弱性) が見つかりました。
悪い人がインターネット越しに PATCH /api/v2/mcp/servers/{server_name} のような特定の入り口を狙うことで、製品の中を不正に操作できてしまいます。
悪用されるとシステム全体を乗っ取られる可能性があります。重要度は CVSS スコア 9.9/10 です。
対策: langflow を 1.10.3 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「langflow CVE-2026-105697」を検索してください。
CVE-2026-105697 (langflow) — CWE-78 / CVSS v3 9.9
攻撃ベクター: ネットワーク経由 (リモート攻撃可) / 被害者操作不要
脆弱箇所: PATCH /api/v2/mcp/servers/{server_name} / GET /api/v1/auto_login / PATCH /api/v2/mcp/servers / command
修正バージョン: 1.10.3 (即時適用推奨)
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。
langflow に OSコマンドインジェクション (CWE-78) があります。攻撃者は PATCH /api/v2/mcp/servers/{server_name} を経由して脆弱な処理に到達できます。
langflow の影響バージョンはベンダーのアドバイザリで確認してください。攻撃箇所: PATCH /api/v2/mcp/servers/{server_name} / GET /api/v1/auto_login / PATCH /api/v2/mcp/servers / command。
重要度: 最重要 (CVSS 9.9/10)。悪用されるとシステム全体を乗っ取られる可能性があります。
1.10.3 に更新してください。
修正版が未提供時は、影響機能の無効化・WAFルール・ネットワークACLでの遮断を検討。
Webサーバ・プロキシ・WAFのアクセスログで PATCH /api/v2/mcp/servers/{server_name} への異常リクエスト (不正な認証ヘッダ、SQL構文)を検索。 依存ファイル (package-lock.json/requirements.txt/go.sum) で langflow のバージョンを横断確認。
対応アクション
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1影響範囲の特定 identify
grep -r 'langflow' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
langflowを grep し、稼働しているサービス・バージョンを把握する。 -
2ログでの侵入兆候検索 detect
grep 'PATCH /api/v2/mcp/servers/{server_name}' /var/log/nginx/access.log | grep -E '(unusual_payload|sqli_pattern)'アクセスログで
PATCH /api/v2/mcp/servers/{server_name}への異常なリクエスト (不正な認証ヘッダ・SQLメタ文字)を過去 30〜90日分捜索。WAF/SIEM があれば該当パスのアラート発火履歴を確認。 -
3パッチ適用 patch
Upgrade langflow to 1.10.3ステージング環境で 1.10.3 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 2 で見つけた異常検知の続報チェックを含めること。
-
4事後検証 verify
Replay attack against PATCH /api/v2/mcp/servers/{server_name} on staging to confirm patch closes the vectorパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 2 と同じログクエリでアラート再発が無いか継続監視。
影響パッケージ
参照URL
- web security-advisories@github.com
- web security-advisories@github.com
- web security-advisories@github.com
- web security-advisories@github.com
- web security-advisories@github.com
- web security-advisories@github.com
- web nvd.nist.gov
- web github.com
- web security-advisories@github.com
- web security-advisories@github.com
- web security-advisories@github.com