CVE-2026-138028
Bagel (bagel-mcp) before 2.5.5 contains an argument injection vulnerability in RsyncFilesToLocalDirectory that allows attackers to inject rsync options because…
Impact
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 run_pipeline with -e/--rsh or --rsync-path options to execute commands as the Bagel server process.
An attacker can exploit this over the network, without logging in, but a user has to be involved, for example by viewing content. Specific conditions have to be met, which makes an attack harder. If it succeeds: high risk of data being read, high risk of data or systems being changed, high risk of outages.
Affected products (Extelligence-ai)
| Product | Affected versions |
|---|---|
| Bagel | before 2.5.5 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/Extelligence-ai/bagel/security/advisories/GHSA-gx2g-3pch-43q5
- https://github.com/Extelligence-ai/bagel/commit/cbec958edd9ce105b9005c9e31631b1dc420ee4f
- https://github.com/Extelligence-ai/bagel/releases/tag/v2.5.5
- https://github.com/Extelligence-ai/bagel/blob/v2.5.4/bagel_mcp/pipeline/tasks/rsync_files.py#L75-L84
- https://github.com/Extelligence-ai/bagel/blob/v2.5.4/bagel_mcp/pipeline/tasks/rsync_files.py#L134-L138
- https://www.vulncheck.com/advisories/bagel-before-2.5.5-argument-injection-via-rsync-pipeline-task-options
- https://github.com/advisories/GHSA-7xxf-5gcm-m2mv
- https://nvd.nist.gov/vuln/detail/CVE-2026-138028