Bagel: remote file access and network requests
HighAI-generated2026-11-29
- CVE
- CVE-2026-138027
- Severity
- High (CVSS 7.5)
- Attack conditions
- Remotely, over the network · No account needed · A user must take some action
- Exploitation probability (EPSS)
- 0.5% (within 30 days; FIRST EPSS, 30 November 2026)
Summary
Bagel before version 2.5.5 allows unauthenticated SQL commands that can read or write files and make network calls. An attacker can exploit this to access data or trigger server-side request forgery.
Details
According to the NVD record, the Bagel MCP component (bagel-mcp) prior to version 2.5.5 permits unsandboxed execution of DuckDB SQL through the read-only annotated query_messages tool. This flaw lets a user run commands such as read_csv_auto, COPY TO, or httpfs.
An attacker who can inject prompts into the underlying language model via logged data can trigger these commands to read or write arbitrary files on the server and issue network requests, effectively achieving file access and server-side request forgery.
What to do
The source record does not name a specific patch, fixed version or workaround. General measures:
- Follow the vendor's security advisories.
- Apply the update when it is released.
- Limit access to the product as much as possible, especially from the internet.
Sources
Timeline
- 27 November 2026 NVD record published
- 29 November 2026 This article was written