Read the docs

Unsandboxed DuckDB SQL execution in Bagel query_messages tool

Priority LOW 34CWE-749Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Passive
Attack complexity
High
Attack requirements
Present
Impact type
—
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA.

Summary

Bagel (bagel-mcp) from 0 before 2.5.5 exposes unsandboxed DuckDB SQL execution through its read-only annotated query_messages MCP tool. An attacker who prompt-injects the driving LLM through recorded logs or topics can read and write files and perform server-side request forgery, because CWE-749 exposes a dangerous function. The attacker needs no privileges, only that the LLM processes attacker-controlled content.

Written with Claude Haiku 5.5 from the sources below · 2026-11-27

Description from the CNA

Bagel (bagel-mcp) before 2.5.5 exposes unsandboxed DuckDB SQL execution through the read-only annotated query_messages MCP tool, allowing file access and network requests. Attackers who prompt-inject the driving LLM via recorded logs or topics can invoke read_csv_auto, COPY TO, or httpfs to read and write files and perform server-side request forgery.

Why it matters now

EPSS 0.00588 42nd percentileScored 2026-11-30
Fix Fixed Bagel (Extelligence-ai): 2.5.5

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
Extelligence-aiBagelbefore 2.5.52.5.5Patch availableCNA
  • Bagel VendorExtelligence-ai Affected before 2.5.5 Fixed in 2.5.5 Patch available CNA

Remediation

Update Bagel to version 2.5.5, which fixes the issue. The sources do not list a vendor advisory identifier for this fix.

Written with Claude Haiku 5.5 from the sources below · 2026-11-27

  • Fix · CNA Bagel (Extelligence-ai) Fixed in 2.5.5

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Advisory ·

    Extelligence-ai Bagel — GitHub Security Advisory (GHSA-gx2g-3pch-43q5)

    2 records Highest priority Priority LOW 2 LOW

    Other records, highest priority first

    • TI-2026-99379 Bagel Argument Injection via rsync Pipeline Task OptionsPriority LOW 36

Timeline

  1. 2026-11-27 Threatist record created from CVE-2026-138027
  2. 2026-11-27 Alias added: GHSA-xrqm-r82m-j847

References

  • TI-2026-99379 Bagel Argument Injection via rsync Pipeline Task Options CVSS 4.0HIGH 7.7

Sources