CVE-2026-138028

Bagel before 2.5.5 Argument Injection via rsync Pipeline Task Options

Published Nov 27, 2026 CVSS 4.0 · 7.7 High EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Extelligence‑ai:Bagel to version 2.5.5 or later, where the rsync options are fully validated.
  • If upgrading is not immediately possible, enforce strict input validation on LLM responses to reject or sanitize any rsync option strings beyond the permitted set.
  • Disable or control the run_pipeline function for untrusted users, or restrict the use of privileged options such as -e/--rsh and --rsync-path through configuration or by manually whitelisting allowed rsync flags.

Generated by OpenCVE AI on November 27, 2026 at 20:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
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.
Title Bagel before 2.5.5 Argument Injection via rsync Pipeline Task Options
Weaknesses CWE-88
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 7.7, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Subscriptions

No data.

Weaknesses
  • CWE-88

    Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 27, 2026, 7:15 PM
Reserved
Nov 27, 2026, 4:44 PM
Status
Received
Published
Nov 27, 2026, 8:18 PM
Modified
Nov 27, 2026, 8:18 PM