Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach exposed MCP port :8080 unauthenticated
-
DeliveryCall execute_query or describe_table
-
ExploitChain or inject ATTACH DATABASE statement
-
ExecutionOpen protected or other SQLite file read-write
-
ImpactModify 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N
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).
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
EUVD-2026-129039
GHSA-q433-mp6c-8v4f
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB