CVE-2026-138028
Received Received - Intake

Rsync Argument Injection in Bagel MCP

Vulnerability report for CVE-2026-138028, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-27

Last updated on: 2026-11-27

Assigner: VulnCheck

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-27
Last Modified
2026-11-27
Generated
2026-11-27
AI Q&A
2026-11-27
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
Extelligence-ai Bagel From 0 (inc) to 2.5.5 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-88 The product constructs a string for a command to be executed by a separate component in another control sphere, but it does not properly delimit the intended arguments, options, or switches within that command string.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is an argument injection flaw in the Bagel (bagel-mcp) software before version 2.5.5. It exists in the RsyncFilesToLocalDirectory task where only --quiet and --log-format rsync options are rejected. Attackers can inject dangerous rsync options like -e/--rsh or --rsync-path through prompt manipulation, allowing them to execute arbitrary commands as the Bagel server process.

Detection Guidance

Check Bagel server logs for unusual rsync command executions with unexpected options like -e or --rsync-path. Inspect network traffic for outbound rsync connections initiated by the Bagel process. Review system logs for any commands executed by the Bagel server user during rsync operations.

Impact Analysis

An attacker could exploit this to run malicious commands on the system hosting the Bagel server. This may lead to unauthorized file access, data exfiltration, or system compromise. Since the attack leverages prompt injection, it requires the attacker to influence the LLM's behavior to trigger the vulnerable function.

Compliance Impact

This vulnerability could lead to unauthorized data access or exfiltration, violating GDPR's data protection principles and HIPAA's security requirements for protected health information. Organizations using vulnerable versions may face compliance violations, legal penalties, and reputational damage due to potential data breaches.

Mitigation Strategies

Upgrade Bagel to version 2.5.5 or later immediately. Disable or restrict rsync functionality if not required. Monitor for suspicious activity in logs and network traffic. Apply network segmentation to limit the impact of potential command execution.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-138028. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...