CVE-2026-130008 — StacklokLabs sqlite-mcp
Research article
sqlite-mcp SQLite Server Allows Remote Code Execution via SQL Injection
| CVE | CVE-2026-130008 |
|---|---|
| Vendor and product | StacklokLabs sqlite-mcp |
| Published | November 18, 2026 21:51 UTC |
| Research cut-off | November 18, 2026 21:25 UTC |
| Updated | November 19, 2026 23:00 UTC |
| Sources reviewed | 2: NVD record (last modified 2026-11-18); CISA KEV catalog |
Update — November 19, 2026
- GitHub scored it CVSS 3.1 8.2 (High): CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N. (GitHub advisory)
- A fixed version is now listed: github.com/StacklokLabs/sqlite-mcp (Go) 0.1.2 (see the versions table below). (GitHub advisory)
Executive summary
The sqlite-mcp SQLite server has a read-only mode bypass via SQL injection in the executequery and describetable functions, which can issue ATTACH DATABASE [1]. The CVSS 3.1 base score is 8.2, HIGH, scored by security-advisories@github.com [1]. Affected versions are < 0.1.2 [1]. The reviewed sources do not report exploitation [2]. The main action is to update to version 0.1.2, which S1 says fixes the issue [1].
Key points
- The sqlite-mcp server allows remote code execution via SQL injection [1].
- The CVSS 3.1 base score is 8.2, HIGH, scored by security-advisories@github.com [1].
- Affected versions are < 0.1.2 [1].
- The reviewed sources do not report exploitation [2].
- The fix is to update to version 0.1.2, which S1 lists as fixed [1].
Vulnerability identification
| CVE ID | Vendor | Product | CWE | CVSS 3.1 | Published | Last Modified | Record Status |
|---|---|---|---|---|---|---|---|
| CVE-2026-130008 | StacklokLabs | sqlite-mcp | CWE-89, CWE-863 | 8.2 HIGH, scored by security-advisories@github.com | 2026-11-18T17:17:38 | 2026-11-18T18:19:08 | Received |
Technical background
The sources describe sqlite-mcp as a Model Context Protocol server for SQLite [1]. No additional technical details about the product are provided in the reviewed sources.
Vulnerability description
The sqlite-mcp server allows an attacker to bypass the default read-only mode by exploiting the executequery and describetable functions. These functions accept user-controlled inputs, which can be used to issue ATTACH DATABASE commands, allowing the attacker to modify the protected database or create new SQLite files [1].
Root cause analysis
The record classifies the weakness as CWE-89 (Improper Neutralization of Special Elements used in an SQL Command) and CWE-863 (Incorrect Authorization) [1].
Technical mechanics
The sources describe that the executequery function accepts a leading SELECT while executing trailing statements, and the describetable function interpolates the caller-controlled tablename into PRAGMA tableinfo. These paths can issue ATTACH DATABASE commands, allowing the attacker to modify the protected database or create new SQLite files [1].
Attack surface and exploitation prerequisites
According to the CVSS vector, the vulnerability is network-accessible, needs no privileges or user interaction, and has high integrity impact [1].
Exploitation scenarios and attack lifecycle
The reviewed sources do not describe specific exploitation scenarios or attack lifecycle steps.
Impact analysis
The CVSS vector indicates that the vulnerability has low confidentiality impact, high integrity impact, and no availability impact [1].
Affected products and versions
| Affected Version | Fixed Version |
|---|---|
| < 0.1.2 | 0.1.2 |
The reviewed sources do not list any other affected products or versions.
Exploitation and threat intelligence status
CVE-2026-130008 is not listed in the CISA KEV catalog as of 2026-11-18 [2]. The reviewed sources do not report exploitation.
Indicators of compromise
The reviewed sources give no indicators of compromise.
Detection and exposure assessment
Defenders may check installed versions against the affected versions; the reviewed sources give no timing advice [1]. Other steps are general guidance.
Immediate mitigation
The reviewed sources do not provide specific immediate mitigation steps. General guidance is to check installed versions against the affected versions [1].
Permanent remediation
The reviewed sources list version 0.1.2 as the fixed version [1].
Workarounds and compensating controls
The reviewed sources do not provide workarounds or compensating controls. General guidance is to check installed versions against the affected versions [1].
Validation and verification
Confirm the installed version after updating. Check the version against the affected versions [1].
Incident response
If exploitation is suspected, general guidance is to check installed versions against the affected versions [1].
Security hardening and prevention
General guidance for this kind of weakness is to check installed versions against the affected versions [1].
Risk assessment
The reviewed sources list the CVSS 3.1 base score as 8.2, HIGH, scored by security-advisories@github.com [1]. The reviewed sources do not report exploitation [2].
Conclusion
The sqlite-mcp server allows remote code execution via SQL injection due to improper handling of user-controlled inputs in the executequery and describetable functions [1]. The fix is to update to version 0.1.2, which S1 lists as fixed [1]. Defenders may check installed versions against the affected versions; the reviewed sources give no timing advice [1].
Remediation checklist
Evidence gaps
- The reviewed sources do not describe the affected component's internals.
- The reviewed sources do not describe complete version ranges.
- The reviewed sources do not list a fixed version beyond 0.1.2.
- The reviewed sources do not report exploitation.
- The reviewed sources give no indicators of compromise.
References
- CVE-2026-130008 record. NIST National Vulnerability Database (NVD), 2026-11-18. https://nvd.nist.gov/vuln/detail/CVE-2026-130008. Accessed 2026-11-18.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-18. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-18.
Summary
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.
Severity breakdown
High · 8.2
An attacker without an account can exploit this over the network, without any user action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Login needed
- no
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- high on integrity, low on confidentiality, none on availability
Weakness
- CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
- CWE-863: Incorrect Authorization
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| github.com/StacklokLabs/sqlite-mcp (Go) | < 0.1.2 | 0.1.2 |
| StacklokLabs sqlite-mcp | < 0.1.2 | — |
References by type
Vendor advisories
Patches and fixed releases
- github.com/StacklokLabs/sqlite-mcp/commit/1da5a6582a4f9d90c778db5687ddc…
- github.com/StacklokLabs/sqlite-mcp/commit/3c244d61cc0a9c0cc5e4d74719c1d…
- github.com/StacklokLabs/sqlite-mcp/pull/112
- github.com/StacklokLabs/sqlite-mcp/releases/tag/v0.1.2
Other references
Affected
- StacklokLabs sqlite-mcp
Frequently asked questions
What is CVE-2026-130008?
The sqlite-mcp SQLite server has a read-only mode bypass via SQL injection in the executequery and describetable functions, which can issue ATTACH DATABASE. The CVSS 3.1 base score is 8.2, HIGH, scored by security-advisories@github.com. Affected versions are < 0.1.2. The reviewed sources do not report exploitation. The main action is to update to version 0.1.2, which S1 says fixes the issue. Weakness type: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (CWE-89).
How severe is CVE-2026-130008?
CVE-2026-130008 has a CVSS 3.1 base score of 8.2 (high), from the CNA (github.com). An attacker without an account can exploit this over the network, without any user action.
Is CVE-2026-130008 being exploited?
Not as far as is known: CVE-2026-130008 is not in CISA's Known Exploited Vulnerabilities catalog as of December 3, 2026. EPSS estimates a 0.4% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-130008?
github.com/StacklokLabs/sqlite-mcp (Go) < 0.1.2 (fixed in 0.1.2); StacklokLabs sqlite-mcp < 0.1.2.
How do I fix CVE-2026-130008?
Defenders may check installed versions against the affected versions; the reviewed sources give no timing advice. The fix is to update to version 0.1.2, which S1 lists as fixed. Verify the installed version after updating.