{"id":"CVE-2026-138027","aliases":["CVE-2026-138027"],"related":[],"kind":"vulnerability","state":"published","title":"Bagel before 2.5.5 Unsandboxed DuckDB SQL Execution via query_messages","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-27T19:15:20.080Z","modified":"2026-12-01T22:17:56.737Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":7.7,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":7.7,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-749"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"2.5.5","status":"affected"}],"vendor":"Extelligence-ai","product":"Bagel","repo":"https://github.com/Extelligence-ai/bagel","source":"cvelist"}],"references":[{"url":"https://github.com/Extelligence-ai/bagel/security/advisories/GHSA-gx2g-3pch-43q5","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/Extelligence-ai/bagel/commit/cbec958edd9ce105b9005c9e31631b1dc420ee4f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/Extelligence-ai/bagel/releases/tag/v2.5.5","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://github.com/Extelligence-ai/bagel/blob/v2.5.4/bagel_mcp/query.py#L11-L29","tags":["technical-description"],"sources":["cvelist","nvd"]},{"url":"https://github.com/Extelligence-ai/bagel/blob/v2.5.4/bagel_mcp/server.py#L246","tags":["technical-description"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/bagel-before-2.5.5-unsandboxed-duckdb-sql-execution-via-query-messages","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["Syed Anas Mohiuddin"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-12-01T21:46:49.205Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-138027","url":"https://www.cve.org/CVERecord?id=CVE-2026-138027","licence":"CVE Terms of Use","modified":"2026-12-01T21:47:00.831Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-138027","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138027","licence":"Public domain","modified":"2026-12-01T22:17:56.737Z"}],"updatedAt":"2026-12-01T22:32:12.953Z","epss":{"score":0.00588,"percentile":0.4948,"date":"2026-12-01T12:00:22.000Z"}}