Description
SQLite before 3.54.0 built with FTS5 contains a heap buffer overflow in fts5MergeRowidLists() that undersizes the output buffer when merging detail=none prefix doclists. Attackers who can populate a detail=none FTS5 table with negative rowids and run a prefix MATCH query can write past the allocation, corrupting heap memory and crashing the process.
Published: 2026-10-30
Score: 8.5 High
EPSS: n/a
KEV: No
Impact: Heap buffer overflow causing memory corruption and crash
Action: Patch immediately
AI Analysis

Impact

SQLite libraries built with the FTS5 extension before version 3.54.0 contain a heap buffer overflow in the function fts5MergeRowidLists(). The flaw occurs when the function merges detail=none prefix doclists that contain negative rowid values, undersizing the output buffer and allowing an attacker to write past the allocated memory. This memory corruption can lead to process crashes and, in some contexts, elevate the effect to more severe failures, but the CVE description does not assert that arbitrary code execution is guaranteed.

Affected Systems

The vulnerability affects all installations of SQLite that include the FTS5 extension and are built with a version earlier than 3.54.0. Supported vendors: SQLite, SQLite developers. All compiled binaries of SQLite prior to 3.54.0 that expose the FTS5 feature are at risk. No specific patch versions are listed beyond the release that includes the fix, which is 3.54.0 and later.

Risk and Exploitability

The CVSS score of 8.5 reflects a high severity. No EPSS score is available and the issue is not listed in the CISA KEV catalog, so public exploit data are currently unknown. The likely attack vector is an application that can write negative rowid values into a detail=none FTS5 table and then issue a prefix MATCH query that triggers the merge. If the database is exposed to untrusted input, remote exploitation may be possible; if it is only accessed locally, exploitation requires application-level access. The exploit requires that the vulnerable code path be active, meaning the FTS5 extension is compiled in and detail=none usage is enabled.

Generated by OpenCVE AI on October 30, 2026 at 13:26 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to SQLite 3.54.0 or later, which contains the patch that correctly allocates the merged doclist buffer
  • If the FTS5 extension is not needed, compile SQLite without FTS5 or remove the detail=none configuration to eliminate the vulnerable code path
  • Add constraints or validation to block insertion of negative rowid values into detail=none FTS5 tables to reduce the attack surface

Generated by OpenCVE AI on October 30, 2026 at 13:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 30 Oct 2026 11:45:00 +0000

Type Values Removed Values Added
Description SQLite before 3.54.0 built with FTS5 contains a heap buffer overflow in fts5MergeRowidLists() that undersizes the output buffer when merging detail=none prefix doclists. Attackers who can populate a detail=none FTS5 table with negative rowids and run a prefix MATCH query can write past the allocation, corrupting heap memory and crashing the process.
Title SQLite before 3.54.0 FTS5 Heap Buffer Overflow via fts5MergeRowidLists()
First Time appeared Sqlite
Sqlite sqlite
Weaknesses CWE-787
CPEs cpe:2.3:a:sqlite:sqlite:*:*:*:*:*:*:*:*
Vendors & Products Sqlite
Sqlite sqlite
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.5, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-30T11:30:39.153Z

Reserved: 2026-10-30T00:39:32.759Z

Link: CVE-2026-119373

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-30T12:16:36.027

Modified: 2026-10-30T12:16:36.027

Link: CVE-2026-119373

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-30T13:45:14Z

Weaknesses