The ADOdb sqlite3 driver allows SQL injection
Published 4 Aug 2025 · Updated 3 Nov 2025
Is your project on an affected adodb/adodb-php?
Look after several Laravel or PHP apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <5.22.10
- Fixed in
- 5.22.10
composer require adodb/adodb-php:^5.22.10Details
Improper escaping of a query parameter may allow an attacker to execute arbitrary SQL statements when the code using ADOdb connects to a sqlite3 database and calls the metaColumns(), metaForeignKeys() or metaIndexes() methods with a crafted table name.
Note that the indicated Severity corresponds to a worst-case usage scenario, e.g. allowing user-supplied data to be sent as-is to the above-mentioned methods.
Impact
SQLite3 driver.
Patches
Vulnerability is fixed in ADOdb 5.22.10 (https://github.com/ADOdb/ADOdb/commit/5b8bd52cdcffefb4ecded1b399c98cfa516afe03).
Workarounds
Only pass controlled data to metaColumns(), metaForeignKeys() and metaIndexes() method's $table parameter.
Credits
Thanks to Marco Nappi (@mrcnpp) for reporting this vulnerability.
Is GHSA-vf2r-cxg9-p7rf in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected adodb/adodb-php, and gives you the command that fixes it.
More advisories for adodb/adodb-php
- CriticalCVE-2025-46337SQL injection in ADOdb PostgreSQL driver pg_insert_id() method · 1 May 2025
- CriticalGHSA-h63c-xvpf-264jADOdb SQL injection vulnerability · 15 May 2024
- MediumCVE-2016-4855ADOdb Cross-site scripting vulnerability in old test script · 17 May 2022
- CriticalCVE-2016-7405ADOdb Library SQL Injection · 17 May 2022
- CriticalCVE-2021-3850Authentication Bypass in ADOdb/ADOdb · 27 Jan 2022
References
- Linkgithub.com/ADOdb/ADOdb/security/advisories/GHSA-vf2r-cxg9-p7rf
- Advisorynvd.nist.gov/vuln/detail/CVE-2025-54119
- Linkgithub.com/ADOdb/ADOdb/issues/1083
- Linkgithub.com/ADOdb/ADOdb/commit/5b8bd52cdcffefb4ecded1b399c98cfa516afe03
- Packagegithub.com/ADOdb/ADOdb
- Linklists.debian.org/debian-lts-announce/2025/10/msg00020.html
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.