CVE-2026-138028: Bagel before 2.5.5 Argument Injection via rsync Pipeline Task Options

Published Nov 27, 2026
·
Updated

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

1 affected component
Bagel bagel-mcp<2.5.5

Event History

Nov 27, 2026
CVE Published
via MITRE·07:15 PM
Data Sourced
via MITRE·07:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:18 PM
DescriptionSeverityWeakness
Event
via NVD·08:18 PM

Frequently Asked Questions

1

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.

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203