CVE-2026-138027
CVE-2026-138027 — Bagel before 2.5.5 Unsandboxed DuckDB SQL Execution via query_messages
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.
Published Updated Sources: NVD, Extelligence-ai (CNA), GitHub
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Public exploit
exploit code published, no use observed
EPSS
n/a
FIRST has not published a score
CVSS base
7.5
high · 2 sources
Remediation
The vendor's own words where we have them.
Upgrade Bagel to a fixed release. Apply vendor patches per advisory and restrict external exposure of the affected component until patched.
First 24 hours
Ordered from the record's own fields — exposure first, because you cannot patch what you have not found.
- Identify exposed assets running affected vendor/product/version combinations.
- Prioritize based on EPSS, PoC availability, and external exposure.
- Search available logs for exploit probes, errors, authentication anomalies, or suspicious child processes matching the vulnerability class.
Affected scope
Vendor, product and version as the advisories word them.
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Extelligence-ai | Bagel | 0 to < 2.5.5 | Vulnerable |
Attack characteristics
The CVSS vector, decoded. It describes the attack, not your exposure to it.
Availability
High
Confidentiality
High
Integrity
High
Scope
Unchanged
Attack Complexity
High
Attack Vector
Network
Privileges Req
None
User Interaction
Required
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 7.5 | CVSS 3.1 | high | 1.6 | 5.9 | NVD, Extelligence-ai (CNA) |
| 7.7 | CVSS 4.0 | high | n/a | n/a | Extelligence-ai (CNA) |
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness & attack patterns
- CWE-749
Public exploit
Capability, not use: code existing is a different claim from anyone running it.
PoC repos
2
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Prioritize edge telemetry for network-reachable Bagel.
- Monitor for scanner or exploit-pattern traffic after 2 public PoC repositories were reported.
Timeline
What happened to this CVE, newest first — with the readings a source repeats on a schedule counted underneath rather than listed.
- 2026
Added · CVSS 3.1 7.5 (AV:N)
Nov 27, 2026 · NVD
Initial · CVE published
Nov 27, 2026 · NVD
References
6 on the record
- github.com/Extelligence-ai/bagel/blob/v2.5.4/bagel_mcp/query.py#L11-L29
Exploit, Third Party Advisory
- github.com/Extelligence-ai/bagel/blob/v2.5.4/bagel_mcp/server.py#L246
Exploit, Third Party Advisory
- github.com/Extelligence-ai/bagel/commit/cbec958edd9ce105b9005c9e31631b1dc420ee4f
Exploit, Third Party Advisory
- github.com/Extelligence-ai/bagel/releases/tag/v2.5.5
Exploit, Third Party Advisory
- github.com/Extelligence-ai/bagel/security/advisories/GHSA-gx2g-3pch-43q5
Exploit, Third Party Advisory
- www.vulncheck.com/advisories/bagel-before-2.5.5-unsandboxed-duckdb-sql-execution-via-query-messages
Vendor Advisory
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2026-138028 Bagel before 2.5.5 Argument Injection via rsync Pipeline Task OptionsCVSS 7.5
- CVE-2026-116779 FreeSWITCH: Inbound SIP MESSAGE can select the api chat proto and run FreeSWITCH API commandsCVSS 9.8 · CISA KEV
- CVE-2018-19322 GIGABYTE Multiple Products Code Execution VulnerabilityCVSS 7.8 · CISA KEV
- CVE-2010-1428 Red Hat JBoss Information Disclosure VulnerabilityCVSS 7.5 · CISA KEV
- CVE-2006-1547 Apache Struts 1 ActionForm Denial-of-Service VulnerabilityCVSS 7.5 · CISA KEV
- CVE-2010-0738 Red Hat JBoss Authentication Bypass VulnerabilityCVSS 5.3 · CISA KEV
Elsewhere on this site
- Extelligence-aievery CVE for this vendor
- Bagelevery page on this product
- Unclassifiedsame class
- CWE-749other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.
Answered from this record1
What should defenders know first?
CVE-2026-138027 is Bagel before 2.5.5 Unsandboxed DuckDB SQL Execution via query_messages, a high vulnerability affecting Bagel from Extelligence-ai. The current evidence does not list it in CISA KEV, and the exploit status is: Active exploitation is not confirmed from current sources for CVE-2026-138027. Public exploit evidence is: 2 public PoC repositories reported; 0 marked weaponized in current dataset. The affected-version evidence is listed in the key facts and affected products tables. Defenders should first verify whether exposed or business-critical assets run those versions, then apply vendor patches or mitigations, restrict reachable attack surface, and preserve logs for detection review. CVSS 7.5 describes technical severity, while EPSS 0% helps estimate near-term exploit likelihood; neither replaces asset context. Unknown fields should remain explicit in tickets, and threat actor, IOC, victimology, or payload claims should not be added unless a cited source supports them. Monitor CISA KEV, vendor advisories, NVD changes, public PoC repositories, and internal telemetry for update triggers.