CVE-2026-138028: Bagel before 2.5.5 Argument Injection via rsync Pipeline Task Options
Bagel (bagel-mcp) before 2.5.5 contains an argument injection vulnerability in RsyncFilesToLocalDirectory that allows attackers to inject rsync options because only --quiet and --log-format values are rejected. Attackers who influence the LLM through prompt-injected content can trigger runpipeline with -e/--rsh or --rsync-path options to execute commands as the Bagel server process.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Bagel (bagel-mcp) deployments running versions before 2.5.5 are exposed when an attacker can influence the LLM with prompt-injected content that leads it to invoke run_pipeline.
What does an attacker need to do to exploit it?
The attacker needs to cause the LLM to supply crafted rsync pipeline task options. The vulnerable RsyncFilesToLocalDirectory handling permits options such as -e/--rsh or --rsync-path, which can be used to execute commands as the Bagel server process.
What should be done if patching cannot happen immediately?
Prevent untrusted or prompt-injected content from influencing LLM requests that can invoke run_pipeline, particularly requests that provide rsync task options. Restricting use of the affected pipeline capability reduces the opportunity to pass -e/--rsh or --rsync-path options.