HighVulnerabilityLLM-specific
CVE-2026-138027: Bagel (bagel-mcp) unsandboxed DuckDB SQL execution via query_messages
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-138027
- Published
- Record updated
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.6%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .
Summary
Bagel (bagel-mcp) before 2.5.5 exposes unsandboxed DuckDB SQL execution through the read-only annotated query_messages MCP tool. 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.
Mitigation
The source does not state a fix yet. Check the original advisory for updates.
Topics
Related items
- InfoMulti Surface Attack: An Agent Is Only as Safe as Its Weakest SurfaceSimilar attack, Arxiv (cs.CR + cs.CL + cs.LG)
- MediumCVE-2026-76895: CKAN MCP Server tool output injection through portal-controlled dataset fieldsSimilar attack, NVD/CVE Database
- MediumCVE-2026-142233: @browserbasehq/eve arbitrary file write through run tool artifacts listSimilar attack, NVD/CVE Database
- MediumCVE-2026-142221: mcp-documentation-server through 1.15.3 contains a cross-site request forgery vulnerability that allows remote…Similar attack, NVD/CVE Database
- HighCVE-2026-142216: gemini-mcp-tool argument injection via the model parameter in executeGeminiCLI()Similar attack, NVD/CVE Database