- Home
- Vulnerabilities
- CVE-2026-138027
CVE-2026-138027
Bagel before 2.5.5 Unsandboxed DuckDB SQL Execution via query_messages
Medium
45/100
Summary
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.
Affected products and versions
Extelligence-ai (1 line(s))
| Product | Versions | Fixed in | Source |
|---|---|---|---|
| Bagel | before 2.5.5 (excluded) |
— | CNA (vendor or assigner) |
Fix
Not provided by the vendor.
Workaround
No workaround provided.
Check whether you are affected
No verification method provided.
Timeline
- — CVE published (cve)
References
- https://github.com/Extelligence-ai/bagel/commit/cbec958edd9ce105b9005c9e31631b1dc420ee4fpatch
- https://github.com/Extelligence-ai/bagel/security/advisories/GHSA-gx2g-3pch-43q5vendor-advisory
- https://github.com/Extelligence-ai/bagel/releases/tag/v2.5.5release-notes
- https://github.com/Extelligence-ai/bagel/blob/v2.5.4/bagel_mcp/query.py#L11-L29technical-description
- https://github.com/Extelligence-ai/bagel/blob/v2.5.4/bagel_mcp/server.py#L246technical-description
- https://www.vulncheck.com/advisories/bagel-before-2.5.5-unsandboxed-duckdb-sql-execution-via-query-messagesthird-party-advisory
Data provenance
- Status
- NVD
- Publication date
- NVD
- Description
- CNA (vendor or assigner)
- CVSS score
- NVD
- Weakness (CWE)
- NVD
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H(CVSS 3.1, NVD)- Weakness
- CWE-749 · Autre (CWE-749)