Unsandboxed DuckDB SQL execution in Bagel query_messages tool
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
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Extelligence-ai | Bagel | before 2.5.5 | 2.5.5 | Patch available | CNA |
- 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
- 2026-11-27 Threatist record created from CVE-2026-138027
- 2026-11-27 Alias added: GHSA-xrqm-r82m-j847
References
More Extelligence-ai vulnerabilities
- TI-2026-99379 Bagel Argument Injection via rsync Pipeline Task Options CVSS 4.0HIGH 7.7
Sources
- CVE-2026-138027 · CVE Program
- CVE-2026-138027 · NVD
- FIRST EPSS
- GHSA-xrqm-r82m-j847 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences