SQLite versions before 3.54.0 that are built with FTS5 contain a heap buffer overflow vulnerability in the function fts5MergeRowidLists(). This flaw occurs when merging detail=none prefix doclists, where the output buffer is undersized. An attacker able to insert negative rowids into a detail=none FTS5 table and execute a prefix MATCH query can trigger heap memory corruption, leading to process crashes.