# CVE-2026-138027: Bagel before 2.5.5 Unsandboxed DuckDB SQL Execution via query_messages

- Severity: High 7.7 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.59%, higher than 49% of CVEs (2026-12-01)
- Published: 2026-11-27T19:15:20.080Z
- Modified: 2026-12-01T22:17:56.737Z
- Weaknesses: CWE-749
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- Extelligence-ai Bagel: before 2.5.5

## Every score

- VulnCheck: CVSS:4.0 7.7 High `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/Extelligence-ai/bagel/security/advisories/GHSA-gx2g-3pch-43q5> (vendor-advisory)
- <https://github.com/Extelligence-ai/bagel/commit/cbec958edd9ce105b9005c9e31631b1dc420ee4f> (patch)
- <https://github.com/Extelligence-ai/bagel/releases/tag/v2.5.5> (release-notes)
- <https://github.com/Extelligence-ai/bagel/blob/v2.5.4/bagel_mcp/query.py#L11-L29> (technical-description)
- <https://github.com/Extelligence-ai/bagel/blob/v2.5.4/bagel_mcp/server.py#L246> (technical-description)
- <https://www.vulncheck.com/advisories/bagel-before-2.5.5-unsandboxed-duckdb-sql-execution-via-query-messages> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-138027](https://www.cve.org/CVERecord?id=CVE-2026-138027), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-138027](https://nvd.nist.gov/vuln/detail/CVE-2026-138027), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-138027 · Whole record: https://cve.day/CVE-2026-138027.json · Rebuilt by cve.day 2026-12-01T22:32:12.953Z
