APSW through 3.54.1.0 contains an sql injection vulnerability in the shell's _fmt_sql_identifier 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.