SQLite heap buffer overflow in FTS5 prefix doclist merging
SQLite
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| SQLite SQLite All platforms where SQLITE_ENABLE_FTS5 is defined |
| No fix yet |
Original 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.
From the CVE record · VulnCheck