CVE-2026-144970: APSW through 3.54.1.0 SQL Injection via Shell .dump Identifier Quoting
APSW through 3.54.1.0 contains an sql injection vulnerability in the shell's fmtsqlidentifier function that wraps double-quoted names in square brackets without escaping closing brackets. Attackers can supply a crafted database with a malicious table name that executes SQL when the victim runs .dump and again when the dump is restored.
Affected Software
Event History
Frequently Asked Questions
Who is realistically exposed to this issue?
Users of the APSW shell are exposed if they run .dump against a database supplied by an untrusted party or containing attacker-controlled table names. The affected component is the shell’s dump functionality, not merely opening a database through APSW.
What must an attacker do to exploit it?
The attacker must provide a crafted database with a malicious table name. Exploitation requires a victim to run .dump; the injected SQL can execute during the dump and again if the resulting dump is restored.
Is user interaction required?
Yes. The supplied vector indicates local access and user interaction, and the described exploitation path requires the victim to invoke .dump on the crafted database.
How can I determine whether I am affected?
Check whether your environment uses APSW through version 3.54.1.0 and whether operators use the APSW shell’s .dump command on databases from untrusted or insufficiently trusted sources.