Technical impact
Bagel (bagel‑mcp) before version 2.5.5 is vulnerable to argument injection in the RsyncFilesToLocalDirectory function. The code accepts arbitrary rsync options, rejecting only --quiet and --log-format while leaving options such as -e/--rsh and --rsync-path unchecked. An attacker who can influence the LLM through prompt‑injected content can craft a pipeline run that injects these options, causing the Bagel server process to execute arbitrary commands. This results in remote code execution, allowing full compromise of the host and all data handled by Bagel.
Affected Systems
All public releases of Extelligence‑ai:Bagel older than 2.5.5 are affected. The vulnerability is present in the bagel_mcp component that handles pipeline tasks, specifically the rsync_files task script used prior to the v2.5.5 update. No further version details are available, so any deployment running 2.5.4 or earlier is considered vulnerable.
Risk and Exploitability
The vulnerability has a CVSS base score of 7.7, indicating a high likelihood of exploitation if an attacker can supply input to the pipeline execution. While EPSS scores are not publicly disclosed, the lack of an EPSS value does not diminish the potential danger. The vulnerability is not listed in the CISA KEV catalog. Attackers must be able to provide malicious input that reaches the Bagel server’s run_pipeline routine, typically via prompt injection into an LLM that triggers the rsync task. Once the option injection is achieved, the attacker can run arbitrary shell commands as the Bagel process, which operates with privileged filesystem access. The consequence is a full remote code execution event, potentially compromising confidentiality, integrity, and availability of the affected system.