CVE-2026-138027

7.5High

Published Nov 27, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite

7.5CVSS

High

0CVSS v3.110

Attack vector
Network
Complexity
High
Privileges
None
User action
Required
Impact
Full C/I/A compromise
Weakness
CWE-749

What an attacker gets

Attackers can read or write arbitrary files and perform server-side request forgery. They need to inject a malicious prompt into the LLM via recorded logs or topics to trigger the unsandboxed SQL execution.

Root cause

The query_messages tool allows unsandboxed DuckDB SQL execution, enabling dangerous commands like read_csv_auto and COPY TO.

Affected versions

bagel-mcp before 2.5.5

CVSS v3.1 · CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Fix & remediation

Upgrade to bagel-mcp version 2.5.5 or later. If you cannot upgrade, disable the query_messages tool in the MCP configuration.

remediation — bash
$ pip install --upgrade bagel-mcp

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD 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

Source: nvd.nist.gov/vuln/detail/CVE-2026-138027

More fully triaged vulnerabilities you may want to check next.