REDHAT-BUG-2563955: Buffer Overflow
SQLite before 3.54.0 built with the session extension contains a heap buffer overflow vulnerability in sqlite3changesetapply() that allows attackers to corrupt heap memory by supplying crafted changesets. Attackers can repeat a table name in a second changeset block with a larger column count, causing sessionUpdateFind() to memset past the undersized aUpdateMask allocation.
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?
SQLite builds before 3.54.0 are affected only when they are built with the session extension. Deployments that do not include that extension are not identified as affected by the provided information.
What must an attacker be able to do to exploit it?
An attacker must be able to supply crafted changesets to sqlite3changeset_apply(). The exploit relies on repeating a table name in a second changeset block while using a larger column count.
Is a default SQLite configuration affected?
The provided information does not establish whether the session extension is enabled in default SQLite builds. Exposure depends on whether the deployed SQLite build includes that extension.
What is the remediation?
Upgrade SQLite to version 3.54.0 or later. If patching cannot occur immediately, prevent untrusted parties from supplying changesets that are applied through sqlite3changeset_apply().
How can I determine whether an application is affected?
Identify the SQLite version in use and whether it was built with the session extension. Applications are particularly relevant if they call sqlite3changeset_apply() on changesets that may be attacker-controlled.