Bagelに脆弱性、プロンプトインジェクションでファイルを読み書きされるおそれ
Summary
Bagel(bagel-mcp)の2.5.5より前のバージョンには、読み取り専用のquery_messagesツールでDuckDBのSQLがサンドボックスなしで実行される脆弱性があります。攻撃者は記録されたログやトピックを通じてLLMに不正な指示を与え、ファイルの読み書きやサーバー側からのリクエストを行わせるおそれがあります。修正版の2.5.5が公開されているため、更新をおすすめします。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Bagel(bagel-mcp)の2.5.5より前のバージョンには、読み取り専用のquery_messagesツールでDuckDBのSQLがサンドボックスなしで実行される脆弱性があります。攻撃者は記録されたログやトピックを通じてLLMに不正な指示を与え、ファイルの読み書きやサーバー側からのリクエストを行わせるおそれがあります。修正版の2.5.5が公開されているため、更新をおすすめします。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Extelligence-aiBagel |
< 2.5.5→ 2.5.5 |
2.5.5 |
Original description The description as published by the source.
Bagel (bagel-mcp) before 2.5.5 exposes unsandboxed DuckDB SQL execution through the read-only annotated query_messages MCP tool, allowing file access and network requests. Attackers who prompt-inject the driving LLM via recorded logs or topics can invoke read_csv_auto, COPY TO, or httpfs to read and write files and perform server-side request forgery.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- web disclosure@vulncheck.com
- web disclosure@vulncheck.com
- web disclosure@vulncheck.com
- web disclosure@vulncheck.com
- web disclosure@vulncheck.com
- web disclosure@vulncheck.com
- web github.com