Vulnerability  ·  2026-11-29

Bagel (bagel-mcp) rsync argument injection in RsyncFilesToLocalDirectory

VulnerabilityMedium impactGlobalCVE-2026-138028
Bagel (bagel-mcp) before 2.5.5 contains an argument-injection vulnerability in RsyncFilesToLocalDirectory, where only `--quiet` and `--log-format` values are rejected, so an attacker can inject additional rsync options. Attackers who influence the LLM through prompt-injected content can trigger run_pipeline and inject rsync flags to write files outside the intended destination or pivot the rsync target. Published 2026-11-27, fixed in 2.5.5.
It converts a pipeline file-sync MCP tool into an arbitrary file-write/overwrite primitive on the host running the agent, and can be reached through untrusted conversation content the LLM trusts. Combined with the same product's DuckDB flaw, it gives prompt-injection-driven file and network access.
Prompt-injected content influences the model to invoke the pipeline tool with crafted rsync options, enabling out-of-scope file writes.
Extelligence-ai Bagel (bagel-mcp) < 2.5.5
Upgrade bagel-mcp to 2.5.5 or later.
NVD detailBagel source (rsync_files.py)
See this in the live feed Explore related AI security and governance findings — updated every morning.
Open the feed →