10.0critical
ADOdb's sqlite3 driver allows SQL injection
- Severity
- 10.0critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.56% (higher than 47% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-vf2r-cxg9-p7rf
Description
ADOdb is a PHP database class library that provides abstractions for performing queries and managing databases. In versions 5.22.9 and below, 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. This is fixed in version 5.22.10. To workaround this issue, only pass controlled data to metaColumns(), metaForeignKeys() and metaIndexes() method's $table parameter.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| ADOdb ADOdb | < 5.22.10 | CVE List |
| adodb/adodb-php (Packagist) | before 5.22.10 | GitHub Advisory Database |
All scores
| GitHub_M | 10.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L |
| GitHub | 10.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.
What each source says
CVE List
ADOdb is a PHP database class library that provides abstractions for performing queries and managing databases. In versions 5.22.9 and below, 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. This is fixed in version 5.22.10. To workaround this issue, only pass controlled data to metaColumns(), metaForeignKeys() and metaIndexes() method's $table parameter.
GitHub Advisory Database
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.
NVD (es)
ADOdb es una librería de clases de bases de datos PHP que proporciona abstracciones para realizar consultas y administrar bases de datos. En las versiones 5.22.9 y anteriores, el escape incorrecto de un parámetro de consulta puede permitir que un atacante ejecute sentencias SQL arbitrarias cuando el código que usa ADOdb se conecta a una base de datos sqlite3 e invoca los métodos metaColumns(), metaForeignKeys() o metaIndexes() con un nombre de tabla manipulado. Esto se solucionó en la versión 5.22.10. Para solucionar este problema, solo pase datos controlados al parámetro $table de los métodos metaColumns(), metaForeignKeys() y metaIndexes().
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-54119 changed 2025-11-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vf2r-cxg9-p7rf changed 2025-11-03 | CC-BY-4.0 |
| NVD | CVE-2025-54119 changed 2026-06-17 | Public domain |