Skip to main content

Bagel MCP EUVDEUVD-2026-137492

| CVE-2026-138028 HIGH
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') (CWE-88)
2026-11-27 VulnCheck GHSA-7xxf-5gcm-m2mv
7.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Plant prompt injection in LLM-read content
  2. Delivery
    LLM invokes rsync pipeline task
  3. Exploit
    Inject -e/--rsh or --rsync-path option
  4. Execution
    rsync executes command as server process
  5. Impact
    Command execution on robotics/IoT host

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Argument sanitization
Exploitation Conditions

Exploitation requires that the Bagel MCP server expose the rsync pipeline task (RsyncFilesToLocalDirectory / run_pipeline) and that an attacker can influence content the connected LLM reads and trusts (prompt injection via a log, topic, or capability), so that the LLM is induced to supply attacker-chosen rsync options. The concrete injectable flags are -e/--rsh and --rsync-path; in versions before 2.5.5 only --quiet and --log-format were rejected, so these pass through. Limiting factors per the CVSS vector and description: not a default-config remote RCE - it needs passive user/operator interaction (UI:P) and a present condition (AT:P), namely a successful prompt-injection channel into the LLM and a pipeline wired to execute. No separate operator authentication to the attacker's injected content is required (PR:N). Complete remediation is upgrading to 2.5.5, which switches to an explicit flag allowlist and rejects sources beginning with '-'.

Impact

The signals point to a real but conditional risk rather than a drop-everything emergency. The CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:P, score 7.7 High) encodes exactly the gating conditions the description states: exploitation is network-reachable and needs no attacker authentication, but it requires both a present attack condition (AT:P) and passive victim interaction (UI:P) - concretely, that an LLM consuming attacker-influenced content is steered into calling run_pipeline with a malicious rsync option. Impact is severe where it triggers: VC:H/VI:H/VA:H reflecting arbitrary command execution as the Bagel server process. No EPSS score and no KEV listing were provided, and the CISA KEV status is not indicated, so there is no evidence of active exploitation; the vuln.today priority is 'this_week', consistent with a serious-but-not-active issue. POC status for THIS rsync path is weaker than it first appears: the VulnCheck/GHSA advisory give a conceptual exploitation example (options: ["-e", "sh -c '...'"]), but the reporter states only Finding 1 (the DuckDB SQL path, a separate issue) was verified locally with a working PoC - the rsync command-injection path is described, not demonstrated as working exploit code. Net: a genuinely High-severity argument-injection flaw whose real-world exploitability hinges on an attacker being able to inject content the LLM trusts and on the server being wired to execute pipelines, which narrows the realistic attacker population.

Exploit ScenarioDerived

An attacker plants prompt-injection text inside a log, topic, or capability that the Bagel-connected LLM reads; the LLM is steered into invoking the rsync pipeline task with an attacker-controlled option such as -e/--rsh or --rsync-path. Because only --quiet and --log-format were rejected, the injected flag passes into the rsync argv and runs an arbitrary command as the Bagel server process - on a host often wired to ROS/MQTT physical-device control. A conceptual exploitation example is published in the advisory, but it is not verified as working exploit code for this path.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 27, 2026

Argument injection in Bagel MCP (bagel-mcp) before 2.5.5 lets an attacker who can steer the connected LLM through prompt-injected log, topic, or capability content force the RsyncFilesToLocalDirectory pipeline task to pass unvetted rsync options such as -e/--rsh or --rsync-path, resulting in command execution as the Bagel server process. Affected deployments are those that expose run_pipeline with the rsync task and that ingest content an LLM reads and trusts; the CVSS vector indicates unauthenticated remote reach (PR:N) but a high attack complexity with a present precondition (AT:P) and required operator interaction (UI:P), so this is a conditional rather than a default-configuration remote compromise. Upgrading to 2.5.5 is the vendor's complete fix and the vendor has published an advisory, a commit, and a release tag; the vuln.today decision label places remediation in this week's patch cycle, and no public exploit code specific to the rsync path is described in the available sources, while no CISA KEV entry is recorded.

RemediationAI

Vendor-released patch: bagel-mcp 2.5.5, published as release tag v2.5.5 (https://github.com/Extelligence-ai/bagel/releases/tag/v2.5.5); upgrade in place with pip install -U bagel-mcp or uvx bagel-mcp@latest, and Docker users should pull the 2.5.5 images. The fix is commit cbec958edd9ce105b9005c9e31631b1dc420ee4f (PR #311), which swaps the two-item denylist for an explicit rsync flag allowlist and rejects sources beginning with '-', so re-validate any existing pipeline configurations whose rsync options were not on the new allowlist, as they will now raise ValueError. Where upgrading cannot be done immediately, the practical containment consistent with the vendor's own guidance is to avoid passing operator- or model-influenced values to the rsync task at all: for SSH ports and keys, define a Host entry in ~/.ssh/config instead of using -e, and restrict which pipelines and which content sources (logs, topics, capabilities) can reach the LLM that drives run_pipeline, since the injected options only execute if the prompt-injection channel into the model succeeds. The vendor's security policy states that since 2.5.5 model-supplied SQL and event predicates run in a DuckDB sandbox limited to a single SELECT with no file, network or extension access, and that SQL escaping that sandbox is in scope; full details are in the advisory at https://github.com/Extelligence-ai/bagel/security/advisories/GHSA-gx2g-3pch-43q5.

Affected VersionsENISA

Bagel 0 <2.5.5

Affected Packages

euvd bagel fix: 2.5.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is CWE-88 argument injection into an rsync command line built by the Bagel pipeline task bagel_mcp/pipeline/tasks/rsync_files.py. Before 2.5.5 the constructor validated options with a two-item denylist that rejected only --quiet and --log-format, so any other flag supplied through the pipeline config's options list passed straight through into the argv array constructed as ["rsync", *self._options, self._source, temp_dir]. rsync treats -e/--rsh as the transport command to spawn and --rsync-path as the program to run on the remote side, so an attacker-chosen value for either yields execution of arbitrary commands in the context of the Bagel server process, which in this project's robotics/drone/IoT deployments is typically a host wired to real ROS/MQTT device control. The input reaches the task because Bagel deliberately accepts LLM-generated content and pipeline configuration, so prompt-injected text that the model reads can induce a run_pipeline invocation carrying the malicious options; the trigger requires that the rsync pipeline task be exposed and that a successful prompt-injection channel exist, which is why the assessed vector carries AC:H, AT:P and UI:P. The 2.5.5 fix replaces the denylist with explicit allowlists (ALLOWED_SHORT_FLAGS, ALLOWED_LONG_FLAGS, ALLOWED_LONG_VALUE_FLAGS) and adds a check rejecting any source string beginning with '-'. The same advisory (GHSA-gx2g-3pch-43q5) also documents a separate CWE-94 issue, unsandboxed DuckDB SQL execution in query_messages, sql gates and topic_sql tasks with arbitrary file read/write and SSRF; 2.5.5 addresses that by moving model-supplied SQL and event predicates onto a locked, separately sandboxed DuckDB connection restricted to a single SELECT.

Know when Bagel gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 7.7 HIGH
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
vuln.today AI 7.5 HIGH

Network-reachable via LLM content with no attacker auth (PR:N), but needs a prompt-injection condition and victim LLM action, so AC:H and UI:R; command execution as server yields C:H/I:H/A:H.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Technical POC Analysis

CWE-88, argument injection / improper neutralization of argument delimiters.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

CVE-2026-138028 is a high-severity argument injection vulnerability in Bagel MCP (bagel-mcp) versions before 2.5.5 that allows an attacker who can manipulate content consumed by the connected LLM - through prompt-injected logs, topics, or capability data - to achieve command execution on the Bagel server process via the rsync pipeline task. Any team operating Bagel with the run_pipeline rsync task enabled and that ingests third-party or LLM-trusted content is in scope, meaning isolated R&D and AI-tooling deployments could give an attacker a foothold inside your environment. Leadership should care because this blends AI supply-chain trust with direct server-side code execution, and remediation is available this patch cycle.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.6%
Top 58% exploitable
Prevalence
Low
niche robotics/IoT MCP server, limited production deployment footprint
Social Media
3
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy