Skip to main content

SQLite CVE-2026-51290

| EUVDEUVD-2026-51253 CRITICAL
Use After Free (CWE-416)
2026-07-30 mitre GHSA-5vr6-8x5x-h94q
9.1
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

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

  1. Access
    Reach app using SQLite shared-cache
  2. Delivery
    Drive concurrent database operations
  3. Exploit
    Trigger BtLock free without unlink
  4. Execution
    Force lock-list traversal of dangling node
  5. Persist
    Read freed heap memory or crash
  6. Impact
    Disclose sensitive memory or deny service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

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

Exploitation Conditions

Exploitation requires the embedding application to have SQLite shared-cache mode explicitly enabled (via sqlite3_enable_shared_cache() or cache=shared), since the vulnerable BtLock lock-management path only executes in that mode - this is not SQLite's default and is the primary limiting factor. The attacker must additionally be able to influence btree lock acquisition/release, typically by driving concurrent database operations across shared-cache connections so a freed BtLock node is traversed. The published vector marks PR:N/UI:N (no authentication or user interaction at the CVSS layer), but because SQLite is an in-process library, actual reachability is bounded by whether the host application exposes attacker-controllable queries; the network vector (AV:N) is inherited from the CVSS record and should be verified against the specific deployment.

Impact

The signals conflict and should temper the headline 9.1. The published CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/C:H/A:H) implies trivial remote unauthenticated exploitation, but SQLite is an in-process library with no network listener, and the flaw only manifests when the embedding application has explicitly enabled shared-cache mode - a non-default configuration - so real-world reachability depends entirely on how the host application exposes SQLite to attacker-controlled queries or connections. CISA SSVC independently rates Exploitation as 'none' (no known or public exploitation) and Technical Impact as 'partial', which is more conservative than the C:H/A:H CVSS impact; Automatable is 'yes'. No EPSS score and no KEV listing are present in the input, and no proof-of-concept is confirmed. Net assessment: this is a genuine memory-safety bug but likely a lower real-world priority than the 9.1 suggests for most deployments, gated by the shared-cache prerequisite and the absence of any observed exploitation - verify with the vendor whether AV:N is warranted, since the description implies exploitation is bounded by application context rather than direct network access.

Exploit ScenarioDerived

In an application configured with SQLite shared-cache mode, an attacker who can drive database operations (for example through an exposed query interface or by controlling a second connection sharing the cache) triggers the lock free-without-unlink, then forces a subsequent lock-list traversal that reads the dangling BtLock node. The result is a crash of the host process (denial of service) or leakage of adjacent heap memory that may contain other tenants' query data or sensitive process state. No public proof-of-concept is confirmed in the available data.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 30, 2026

Memory disclosure and denial of service in SQLite 3.41 arise from a use-after-free in the btree module's shared-cache lock management, where a BtLock structure is freed but never unlinked from its linked list. Applications that enable SQLite shared-cache mode can have subsequent list traversals read freed memory, leaking sensitive process memory (CVSS C:H) or crashing the process (A:H). No public exploit identified at time of analysis, and SSVC lists exploitation status as none, though the flaw is assessed as automatable.

RemediationAI

No vendor-released patched version is identified in the provided data, and the only code reference points to the upstream btree.c source rather than a tagged fix, so treat the fixed release as not independently confirmed and monitor https://nvd.nist.gov/vuln/detail/CVE-2026-51290 and sqlite.org for an official release before pinning a version. As the most effective compensating control, disable shared-cache mode where feasible - stop calling sqlite3_enable_shared_cache() and remove cache=shared from connection URIs/open flags - which removes the vulnerable code path entirely; the trade-off is higher per-connection memory use and loss of the cross-connection cache sharing that shared-cache mode provides, which some memory-constrained or high-connection embedded deployments rely on. Where the application controls query input, restrict database access to trusted callers and avoid exposing SQLite queries to untrusted network clients. Once an upstream fix lands in btree.c, rebuild and redistribute all applications that statically link SQLite, since patching a single system library will not update embedded copies.

Affected VersionsENISA

n/a n/a

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

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

Technical ContextAI · show details

SQLite is an embedded, in-process relational database engine linked directly into host applications rather than run as a network service. The defect is classed as CWE-416 (Use After Free) and lives in the btree layer's shared-cache locking code (src/btree.c), which coordinates read/write locks across multiple database connections that share a single page cache within one process. Each lock is tracked by a BtLock node in a per-shared-cache linked list; the bug frees a BtLock node without first removing it from that list, so a later traversal dereferences a dangling pointer into reclaimed heap memory, allowing either a crash or exposure of whatever heap contents now occupy the freed region. Shared-cache mode is an opt-in feature (enabled via sqlite3_enable_shared_cache() or the cache=shared URI/open flag) and is not active in SQLite's default configuration.

Know when N A 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 (mitre) PRIMARY 9.1 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
vuln.today AI 7.4 HIGH

Non-default shared-cache mode plus a lock-traversal race raises AC to H; no auth needed so PR:N; memory disclosure gives C:H and crash gives A:H with no integrity impact.

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

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

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

Lifecycle Timeline

2
CVE Published
Jul 30, 2026 - 00:00 cve.org
CRITICAL 9.1
CVE Published
Jul 30, 2026 - 00:00 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

SQLite 3.41 has a use-after-free vulnerability in the shared cache lock management logic of the btree module. The program frees a BtLock structure without removing the node from the linked list. Subsequent linked list traversal accesses the released memory, which can lead to denial of service and sensitive memory information disclosure.

Executive ViewAI

Why It Matters

SQLite 3.41 contains a critical vulnerability that enables simultaneous memory leakage and service disruption in applications using its shared-cache mode-a feature common in multi-tenant and embedded deployments. The flaw can expose sensitive data including credentials and customer information while enabling attackers to trigger denial of service, directly compromising both confidentiality and availability for affected business operations. With no vendor patch currently available, organizations must act immediately to identify and remediate vulnerable deployments.

Business Impact: Severe
Compensating Controls

Immediately disable SQLite shared-cache mode in affected applications to eliminate the attack vector; implement network segmentation and access controls to restrict direct connectivity to services using SQLite 3.41; accelerate upgrade to SQLite versions prior to 3.41 or transition to patched releases when vendor releases them, as no vendor-released patch identified at time of analysis.

Threat Intelligence Overview

EPSS Score
0.3%
Top 73% exploitable
Prevalence
Ubiquitous
SQLite is embedded in browsers, phones, and countless applications worldwide
Data Quality
5 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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
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
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Partial

Priority Score

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

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in N A

View all
CVE-2024-51092 CRITICAL POC
9.1 May 08

LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr

CVE-2025-15684 MEDIUM POC
5.5 Aug 12

Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han

CVE-2024-45257 HIGH POC
7.3 May 08

A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi

CVE-2025-15687 LOW POC
2.1 Aug 12

Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc

CVE-2025-15686 LOW POC
2.1 Aug 12

Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula

CVE-2025-67888 HIGH POC
7.3 May 08

Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root

CVE-2024-53326 HIGH POC
7.3 May 08

LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(

CVE-2026-38360 CRITICAL POC
9.8 May 08

Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti

CVE-2026-30623 CRITICAL POC
9.8 Jul 15

Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr

CVE-2026-67917 CRITICAL POC
9.8 Aug 17

SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg

CVE-2026-75337 CRITICAL POC
9.8 Aug 27

Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ

CVE-2026-31072 CRITICAL POC
9.8 May 19

Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali

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