---
id: CVE-2026-119373
title: SQLite before 3.54.0 FTS5 Heap Buffer Overflow via fts5MergeRowidLists()
summary: >-
  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 r…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cvssSource: cna
cwe:
  - CWE-787
vendor: SQLite
product: SQLite
affected:
  - SQLite < 3.54.0
published: '2026-10-30'
updated: '2026-10-30'
sourceUpdated: '2026-10-30T11:30:39.153Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-119373'
references:
  - url: 'https://sqlite.org/bugs/info/2026-08-04T08:49:27Z'
  - url: 'https://sqlite.org/src/info/a7f8c92f62'
  - url: >-
      https://github.com/sqlite/sqlite/commit/e1c9934f9f11a499029abb020ea715a08970da80
  - url: >-
      https://github.com/sqlite/sqlite/blob/version-3.53.4/ext/fts5/fts5_index.c#L6107
  - url: 'https://sqlite.org/releaselog/3_54_0.html'
  - url: 'https://abraxaslabs.tech/research/sqlite-fts5-rowidmerge'
  - url: 'https://github.com/sqlite/sqlite'
  - url: >-
      https://www.vulncheck.com/advisories/sqlite-before-3.54.0-fts5-heap-buffer-overflow-via-fts5mergerowidlists
    label: >-
      VulnCheck Advisory: SQLite before 3.54.0 FTS5 Heap Buffer Overflow via
      fts5MergeRowidLists()
tags:
  - cve.org
epss: 0.00144
epssPercentile: 0.03659
ingestedAt: '2026-11-03T10:42:03.636Z'
---

## Overview

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.

## Affected

- `SQLite < 3.54.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
