Skip to main content

sqlite-mcp CVE-2026-130008

| EUVDEUVD-2026-129039 HIGH
SQL Injection (CWE-89)
2026-11-18 GitHub_M GHSA-q433-mp6c-8v4f
8.2
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach exposed MCP port :8080 unauthenticated
  2. Delivery
    Call execute_query or describe_table
  3. Exploit
    Chain or inject ATTACH DATABASE statement
  4. Execution
    Open protected or other SQLite file read-write
  5. Impact
    Modify database, read other SQLite files, or create file

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

No special product configuration is required beyond the default: the server runs in read-only mode by default and, by default, listens on :8080 on all interfaces with no built-in authentication, so remote unauthenticated exploitation works against a default deployment that is network-reachable. The specific trigger is either execute_query (only checked that input starts with SELECT, while the modernc.org/sqlite driver executes every ';'-separated trailing statement) or describe_table (table_name interpolated unguarded into PRAGMA table_info), each reaching ATTACH DATABASE. Limiting factors that reduce realistic exposure: the attacker must be able to reach the listening port, so binding to loopback/a private interface or placing an authenticating proxy (e.g. ToolHive) in front prevents exploitation; file creation/writing is constrained to SQLite-format or empty files - existing non-empty files that are not SQLite databases are refused and left unchanged; cross-file read/write is bounded by the filesystem permissions of the server process.

Impact

The CVSS base score of 8.2 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N) describes a remotely reachable, low-complexity flaw needing no privileges and no user interaction, which is corroborated by the description: the server ships with no authentication and listens on :8080 on all interfaces by default, so any client that can reach the port can invoke the vulnerable tools. The vuln.today Decision label is 'this_week', consistent with a serious but not emergency priority. No EPSS score and no KEV status were provided in the input, so widespread-exploitation probability and confirmed active exploitation cannot be judged from the data - this absence should not be read as 'safe', only as 'unmeasured'. No confirmed working exploit code is listed, but the public GHSA advisory and the patch diff both spell out the exact bypass mechanism (statement chaining after a leading SELECT, and table_name interpolation into PRAGMA table_info, both reaching ATTACH DATABASE), which materially lowers the barrier to building an exploit. Net assessment: for any operator who exposes this server to untrusted clients this is a real, actionable priority given the trivial unauthenticated network vector; however the real-world blast radius is bounded by the product's small deployment footprint rather than by exploitation difficulty. The I:H / C:L / A:N weighting is coherent with the impact (write/modify the protected DB and create SQLite files = high integrity impact; read only other SQLite-format files = limited confidentiality; no availability impact).

Exploit ScenarioDerived

An attacker who can reach the server's default :8080 port - which requires no authentication - calls execute_query with a leading 'SELECT 1;' followed by a chained ATTACH DATABASE statement, or injects into the describe_table table_name argument, to attach the protected database read-write and modify it, or to read or create other SQLite-format files the server process can access. Because the CVSS vector is AC:L/PR:N/UI:N, no special timing, privileges, or victim interaction is needed. No confirmed working exploit code is published, but the GHSA advisory and patch diff describe the exact technique in detail.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 18, 2026

Read-only mode bypass in StacklokLabs sqlite-mcp before 0.1.2 lets remote unauthenticated clients write to the very database the server is meant to expose read-only, read other SQLite files on the host, and create new SQLite-format files anywhere the server process can write. Two paths reach ATTACH DATABASE - statement chaining through execute_query (only the leading SELECT was validated while the modernc.org/sqlite driver runs every ';'-separated trailing statement) and SQL injection through describe_table's table_name argument interpolated into PRAGMA table_info. The server ships with no built-in authentication and listens on :8080 on all interfaces by default, so any client that can reach the port can invoke the tools; CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N scores it 8.2, and no public exploit code was identified at time of analysis.

RemediationAI

Vendor-released patch: upgrade to sqlite-mcp v0.1.2, which disables ATTACH at the engine level on every connection that runs a statement (covering reconnects after the pool discards a connection), sets query_only on read-only connections, rejects multi-statement input in execute_query, and binds the table name in describe_table - see https://github.com/StacklokLabs/sqlite-mcp/releases/tag/v0.1.2 and the advisory at https://github.com/StacklokLabs/sqlite-mcp/security/advisories/GHSA-q433-mp6c-8v4f. If upgrading is not immediately possible, the vendor's stated workaround is to not expose the server to untrusted clients: bind it to a loopback or private interface instead of :8080 on all interfaces, or front it with an authenticating proxy such as ToolHive (the trade-off is that any unauthenticated client able to reach the port retains the full bypass), and mount only the database you intend to expose, read-only at the filesystem or container level, so that ATTACH cannot reach other files or create new ones - recognizing that filesystem read-only mounts also prevent legitimate write operations if the deployment expects them.

Affected VersionsENISA

sqlite-mcp < 0.1.2

Affected Packages

go github.com/stackloklabs/sqlite-mcp fix: 0.1.2
euvd sqlite_mcp fix: 0.1.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

sqlite-mcp is a Go implementation of a Model Context Protocol server exposing SQLite databases as MCP tools, using the pure-Go modernc.org/sqlite driver. The root cause class is CWE-89 (the advisory also tags CWE-863, incorrect authorization) because both entry points built SQL from insufficiently validated input: execute_query used a lexical check that the statement merely starts with SELECT, while the driver executes all semicolon-separated statements in a single call, and describe_table interpolated the caller-supplied table_name directly into PRAGMA table_info(%s). Either path can issue ATTACH DATABASE, and SQLite opens attached files read-write regardless of the main connection's mode=ro - this is what defeats the read-only guarantee and also permits cross-database reads and creation of new SQLite files. The vendor fix in v0.1.2 works at the engine level rather than the SQL-text level: SQLITE_LIMIT_ATTACHED is set to zero on every connection that executes a statement (the limit is bound to a single connection and the driver can discard a connection after an interrupted query, so it is re-applied per connection via a withConn helper), read-only connections set query_only, execute_query rejects multi-statement input, and describe_table passes the table name as a bound parameter. Read-write mode is not affected beyond its intended capabilities, apart from ATTACH reaching files other than the configured database. Writes are bounded by filesystem permissions and by SQLite's refusal to touch existing non-empty files that are not SQLite databases.

Know when Sqlite Mcp gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 8.2 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N
vuln.today AI 8.2 HIGH

Default config is unauthenticated and listens on all interfaces (AV:N/PR:N/UI:N), trigger needs no special conditions (AC:L); write/create to the protected DB and SQLite files is I:H, reads limited to SQLite files is C:L, no availability impact (A:N).

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
High
Availability
None

Lifecycle Timeline

2
Patch available
Nov 18, 2026 - 18:03 EUVD
CVE Published
Nov 18, 2026 - 16:46 cve.org
HIGH 8.2

DescriptionCVE.org

sqlite-mcp is a Model Context Protocol server for SQLite. Prior to 0.1.2, the default read-only mode can be bypassed through execute_query, which accepts a leading SELECT while the SQLite driver executes trailing statements, and through describe_table, which interpolates the caller-controlled table_name into PRAGMA table_info. Either path can issue ATTACH DATABASE, which opens an attached file read-write despite mode=ro and can make the protected database writable, read other SQLite database files, or create a SQLite-format file at a path writable by the server process. Existing non-empty files that are not SQLite databases are refused and left unchanged. The server has no built-in authentication and listens on all interfaces at :8080 by default, so any client that can reach the port can invoke these tools unless an authenticating proxy is in place. This issue is fixed in version 0.1.2.

Technical POC Analysis

Two distinct defects sit in the MCP tool handlers of github.com/StacklokLabs/sqlite-mcp (Go), both classed CWE-89 (per the advisory, additionally CWE-863), and both funnel into the same capability: a…

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

StacklokLabs sqlite-mcp versions before 0.1.2 contain a high-severity vulnerability that allows remote unauthenticated attackers to bypass read-only mode and modify databases, read other SQLite files, and create new files on the host. This directly threatens the confidentiality and integrity of critical data managed by the server, with potential for broader system compromise. Leadership should prioritize remediation given the ease of exploitation and the lack of built-in authentication.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: restrict network access to the service, implement authentication at a reverse proxy, validate and sanitize SQL inputs, and monitor for anomalous database activity.

Threat Intelligence Overview

EPSS Score
0.4%
Top 69% exploitable
Prevalence
Low
niche open-source MCP server (StacklokLabs), small emerging-tool deployment footprint
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy