CVE-2026-138027
published high CVSS 4.0 · 7.7Bagel before 2.5.5 Unsandboxed DuckDB SQL Execution via query_messages
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Extelligence-ai | — | Bagel0 to < 2.5.5 · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.7 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.5 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Extelligence-ai | Bagel | 0 to < 2.5.5 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-749 Exposed Dangerous Method or Function
References
6- https://github.com/Extelligence-ai/bagel/blob/v2.5.4/bagel_mcp/query.py#L11-L29
- https://github.com/Extelligence-ai/bagel/blob/v2.5.4/bagel_mcp/server.py#L246
- https://github.com/Extelligence-ai/bagel/commit/cbec958edd9ce105b9005c9e31631b1dc420ee4f
- Bagel v2.5.5 Release Notes https://github.com/Extelligence-ai/bagel/releases/tag/v2.5.5
- GitHub Security Advisory (GHSA-gx2g-3pch-43q5) https://github.com/Extelligence-ai/bagel/security/advisories/GHSA-gx2g-3pch-43q5
- VulnCheck Advisory: Bagel before 2.5.5 Unsandboxed DuckDB SQL Execution via query_messages https://www.vulncheck.com/advisories/bagel-before-2.5.5-unsandboxed-duckdb-sql-execution-via-query-messages
Provider assertions
2VulnCheck · cna
Bagel before 2.5.5 Unsandboxed DuckDB SQL Execution via query_messages
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 435124c9518fa542e622680bdeba279eb5f3f7a4f25b91bf2c5eb8ea4ddbe1a9
- Ingested
- 01 Dec 2026, 21:54:18 UTC
- Source record
- Official CVE record