← Signals

Nov 27, 2026

3 min

Extelligence-ai/bagel

  • bagel-mcp
  • mcp
  • prompt-injection
  • argument-injection
  • duckdb
  • rsync
  • python
  • cve-2026-138027
  • cve-2026-138028

news

bagel-mcp Unsandboxed DuckDB SQL & rsync Argument Injection (CVE-2026-138027, CVE-2026-138028)

High 7.7

bagel-mcp before 2.5.5 exposes unsandboxed DuckDB SQL via query_messages (CVE-2026-138027, CVSS 4.0 7.7) and rsync option injection in run_pipeline (CVE-2026-138028, CVSS 4.0 7.7). Fixed in 2.5.5; not in CISA KEV.

Record
CVE-2026-138027
Score
High 7.7
Status
Not KEVChecked, not listed
Organization
Extelligence-ai/bagel

Summary

On 27 November 2026, VulnCheck published CVE-2026-138027 and CVE-2026-138028 against Bagel (bagel-mcp) before 2.5.5, an MCP server from Extelligence-ai. Both CVE records score CVSS 4.0 7.7 High (CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N; CVSS 3.1 7.5). Neither is listed in CISA KEV (catalog 2026.11.27), and no public exploit code has been identified. The maintainer fixed both in 2.5.5, released 15 November 2026.

Vulnerability details and prerequisites

CVEComponent & MechanismSeverityWeakness
CVE-2026-138027query_messages MCP tool: Model-supplied SQL runs on a default DuckDB connection with no sandbox, so read_csv_auto, COPY ... TO and httpfs allow file read/write and server-side request forgeryCVSS 4.0 7.7 HighCWE-749
CVE-2026-138028RsyncFilesToLocalDirectory pipeline task: Only --quiet and --log-format are rejected, so -e/--rsh or --rsync-path passed through run_pipeline execute commands as the Bagel server processCVSS 4.0 7.7 HighCWE-88
  • Attack path: Both CVE records describe attackers who influence the driving LLM through prompt-injected content (CVE-2026-138027 names recorded logs or topics) so that it calls the vulnerable tool. The CNA scores user interaction as passive and attack complexity as high.
  • Affected versions: All bagel-mcp releases below 2.5.5 (PyPI package bagel-mcp).
  • Vendor severity differs from the CNA score: The GitHub advisory GHSA-gx2g-3pch-43q5 labels the combined report Critical and lists no CVSS vector. The CVE records carry the 7.7 scores. The reporter's own text rates the DuckDB finding Critical and the rsync finding High.
  • Exploit status: The original reporter states a local proof of concept was verified for the DuckDB issue. The advisory and CVE references describe the technique but publish no exploit code, and no in-the-wild exploitation is reported.
  • Fix: Model-supplied SQL and event predicates now run on a separate DuckDB connection with external access, extension install and autoload disabled and configuration locked. Statements must be a single SELECT. The rsync options field is now an allowlist that rejects -e/--rsh, --rsync-path, file-writing flags and sources starting with - (pull request #311, commit cbec958).
  • Credit: The advisory credits Syed Anas Mohiuddin, maintainer of mcp-safeguard.

Operator actions

  1. Upgrade with pip install -U bagel-mcp (or uvx bagel-mcp@latest). Docker users should pull the 2.5.5 or later images. PyPI currently lists 2.5.6 as the latest release.
  2. Until upgraded, avoid pointing Bagel at untrusted logs or topics. Run it with minimal filesystem and network access, because the reporter says it is typically wired to ROS/MQTT device control.
  3. Review pipeline configs for rsync options containing -e, --rsh or --rsync-path.

Sources

→ Source