---
title: "CVE-2026-138028: Bagel - Command Injection"
description: "Bagel (bagel-mcp) < 2.5.5 contains a command injection caused by insufficient filtering of rsync options in RsyncFilesToLocalDirectory, letting attackers inject commands executed as the Bagel server process, exploit requires attacker to influence LLM with prompt-injected content."
url: https://panop.io/threat-heartbeat/CVE-2026-138028/
---

# CVE-2026-138028 Bagel - Command Injection

Bagel (bagel-mcp) < 2.5.5 contains a command injection caused by insufficient filtering of rsync options in RsyncFilesToLocalDirectory, letting attackers inject commands executed as the Bagel server process, exploit requires attacker to influence LLM with prompt-injected content.

CVSS base score 7.5 /10

High

CISA KEV

Not listed

Public exploit

None known

EPSS

0.58% chance of exploitation in 30 days

[View the NVD record ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-138028)

## Details

Type

Command Injection

Impact

Remote Code Execution

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Published

27 November 2026

Updated

29 November 2026

Weakness

[CWE-88](https://cwe.mitre.org/data/definitions/88.html)

## Vendor fix

Update to version 2.5.5 or later.

Patching closes this CVE. It does not tell you which of your systems run the affected version, or what else is exposed alongside them.

## References

- [https://nvd.nist.gov/vuln/detail/CVE-2026-138028](https://nvd.nist.gov/vuln/detail/CVE-2026-138028)
- [https://www.vulncheck.com/advisories/bagel-before-2.5.5-argument-injection-via-rsync-pipeline-task-options](https://www.vulncheck.com/advisories/bagel-before-2.5.5-argument-injection-via-rsync-pipeline-task-options)
- [https://github.com/Extelligence-ai/bagel/blob/v2.5.4/bagel\_mcp/pipeline/tasks/rsync\_files.py#L134-L138](https://github.com/Extelligence-ai/bagel/blob/v2.5.4/bagel_mcp/pipeline/tasks/rsync_files.py#L134-L138)
- [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#L75-L84)
- [https://github.com/Extelligence-ai/bagel/commit/cbec958edd9ce105b9005c9e31631b1dc420ee4f](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/releases/tag/v2.5.5)
- [https://github.com/Extelligence-ai/bagel/security/advisories/GHSA-gx2g-3pch-43q5](https://github.com/Extelligence-ai/bagel/security/advisories/GHSA-gx2g-3pch-43q5)

[← All CVEs](https://panop.io/threat-heartbeat/)

## What this record can't tell you

- Whether you run the affected software, and where
- Whether an attacker can actually reach and exploit it
- The misconfigurations that never get a CVE number
- What it would cost the business, ranked into what to fix first

Panop answers these inside your environment, for this CVE and every other finding.

[Book a demo](https://panop.io/demo)
