GitHub Advisoryadvisory · Packagist
GHSA-vf2r-cxg9-p7rf The ADOdb sqlite3 driver allows SQL injection
CRITICAL
Official page ↗
- Aliases
- CVE-2025-54119
- Ecosystem
- Packagist
- Packages
- adodb/adodb-php
- Severity
- Critical
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L
- Weaknesses
- CWE-89
- Reviewed
- 2025-08-04
Affected packages
• Packagist adodb/adodb-php: < 5.22.10 → fixed in 5.22.10
Description
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.
Related
Alias · CVE (1)
- CVE-2025-54119 ADOdb is a PHP database class library that provides abstractions for performing queries and managing databases. vulnerability
Weakness · CWE (1)
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command weakness
References
- https://github.com/ADOdb/ADOdb/security/advisories/GHSA-vf2r-cxg9-p7rf web
- https://nvd.nist.gov/vuln/detail/CVE-2025-54119 advisory
- https://github.com/ADOdb/ADOdb/issues/1083 web
- https://github.com/ADOdb/ADOdb/commit/5b8bd52cdcffefb4ecded1b399c98cfa516afe03 web
- https://github.com/ADOdb/ADOdb package
- https://lists.debian.org/debian-lts-announce/2025/10/msg00020.html web