CVE-2026-145577: SQLite before 3.54.0 Authorizer Bypass via INSERT INTO SELECT Transfer Optimization
SQLite before 3.54.0 contains an authorizer bypass vulnerability in xferOptimization() that allows attackers to read protected tables by skipping SQLITESELECT and SQLITEREAD authorizer checks. Attackers submitting untrusted SQL can run INSERT INTO dst SELECT FROM src into a schema-compatible table to copy rows the authorizer denies and read them.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments using SQLite before 3.54.0 are affected when they execute untrusted SQL while relying on an SQLite authorizer to deny access to protected tables. The attacker also needs a schema-compatible destination table into which rows from the protected source table can be copied.
What access does an attacker need to exploit it?
The attacker needs the ability to submit SQL to the affected SQLite database. Exploitation uses an INSERT INTO dst SELECT * FROM src statement and does not require user interaction.
What can be done if upgrading is not immediately possible?
Do not allow untrusted parties to submit arbitrary SQL to the database. In particular, prevent attacker-controlled INSERT INTO ... SELECT statements that can target tables protected by the authorizer.
How can I determine whether an application is vulnerable?
Check whether it uses SQLite earlier than 3.54.0 and employs an authorizer to restrict SQLITE_SELECT or SQLITE_READ access. It is vulnerable in practice if an untrusted SQL submitter can create or use a schema-compatible destination table and execute INSERT INTO dst SELECT * FROM a protected source table.