CVE-2026-144970: APSW through 3.54.1.0 SQL Injection via Shell .dump Identifier Quoting

Published Dec 4, 2026
·
Updated

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

1 affected component
pypi/apsw<=3.54.1.0

Event History

Dec 4, 2026
CVE Published
via MITRE·02:42 PM
Data Sourced
via MITRE·02:42 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:17 PM
DescriptionSeverityWeakness
Event
via NVD·03:17 PM

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203