CVE-2026-138027 - Bagel before 2.5.5 Unsandboxed DuckDB SQL Execution via query_messages
Vulnerability · Reported by NVD ·
- Severity
- High Estimated, NVD hasn't scored it yet
- CVSS
- – Not scored yet
- Exploit chance (EPSS)
- 0.59% Higher than 42% of CVEs
- Known exploited
- No Not in CISA KEV
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.
Is it being exploited?
The EPSS model estimates a 0.59% chance this CVE will be exploited in the next 30 days, which is low and higher than 42% of all published CVEs.
Patch priority and what to do
Schedule patching in your next maintenance window, and sooner for internet-facing systems. 1) Check whether you run the affected product and version. 2) Apply the vendor update or patch listed in the advisory. 3) Review logs for signs of exploitation since the publication date.
Tags
CVE-2026-138027
Sources & references
- Original article / advisory (NVD) ↗
- NIST NVD: CVE-2026-138027 ↗
- CVE.org record ↗
- FIRST.org EPSS model ↗
NVD has not scored this CVE yet. The severity shown is an estimate from the article text and will be replaced automatically.
How this data is collected: methodology & sources.