REDHAT-BUG-2563953: Buffer Overflow
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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
SQLiteto a version that resolves this vulnerability.Fixed in 3.54.0
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments using SQLite versions before 3.54.0 that were built with FTS5 are affected when they use a detail=none FTS5 table with prefix queries.
What access does an attacker need to trigger the overflow?
An attacker must be able to populate a detail=none FTS5 table with negative rowids and execute a prefix MATCH query against it.
What is the likely impact of successful exploitation?
The overflow writes past a heap allocation, which can corrupt heap memory and crash the affected process.