CVE-2026-138027

high

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.

References

https://www.vulncheck.com/advisories/bagel-before-2.5.5-unsandboxed-duckdb-sql-execution-via-query-messages

https://github.com/Extelligence-ai/bagel/security/advisories/GHSA-gx2g-3pch-43q5

https://github.com/Extelligence-ai/bagel/releases/tag/v2.5.5

https://github.com/Extelligence-ai/bagel/commit/cbec958edd9ce105b9005c9e31631b1dc420ee4f

https://github.com/Extelligence-ai/bagel/blob/v2.5.4/bagel_mcp/server.py#L246

https://github.com/Extelligence-ai/bagel/blob/v2.5.4/bagel_mcp/query.py#L11-L29

https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-137493

Details

Source: Mitre, NVD

Published: 2026-11-27

Updated: 2026-11-27

CVSS v3

Base Score: 7.5

Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Severity: High

CVSS v4

Base Score: 7.7

Vector: 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

Severity: High