REDHAT-BUG-2563978: Buffer Overflow
SQLite before 3.54.0 built with FTS5 contains a heap buffer overflow in fts5DoSecureDelete() that allows attackers to write past the leaf page buffer via crafted footer key offsets. Attackers can supply a database file with a corrupted FTS5 index that, when deleted from with secure-delete enabled, corrupts heap memory and crashes the application.
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
Who is exposed to this issue?
Applications using SQLite versions before 3.54.0 that are built with FTS5 are exposed when they operate on a database containing a corrupted FTS5 index and perform a deletion with secure-delete enabled.
What does an attacker need to do to trigger the flaw?
An attacker needs to supply a database file with a corrupted FTS5 index. The vulnerable application must then delete data from that database while secure-delete is enabled.
What is the likely impact of successful exploitation?
The crafted footer key offsets can cause writes past the FTS5 leaf-page heap buffer. This corrupts heap memory and can crash the application.
How can I determine whether an application is affected?
Check whether it uses SQLite before 3.54.0, was built with FTS5 support, and processes potentially untrusted SQLite database files. The described trigger additionally requires secure-delete to be enabled during deletion operations.