{"id":"CVE-2025-54119","aliases":["CVE-2025-54119","GHSA-vf2r-cxg9-p7rf"],"related":[],"kind":"vulnerability","state":"published","title":"ADOdb's sqlite3 driver allows SQL injection","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.\n\nNote 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.\n\n### Impact\nSQLite3 driver.\n\n### Patches\nVulnerability is fixed in ADOdb 5.22.10 (https://github.com/ADOdb/ADOdb/commit/5b8bd52cdcffefb4ecded1b399c98cfa516afe03).\n\n### Workarounds\nOnly pass controlled data to metaColumns(), metaForeignKeys() and metaIndexes() method's $table parameter.\n\n### Credits\n\nThanks to Marco Nappi (@mrcnpp) for reporting this vulnerability.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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().","source":"nvd"}],"published":"2025-08-04T15:12:03.000Z","modified":"2026-06-17T09:39:29.007Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L","score":10,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L","score":10,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L","score":10,"rating":"CRITICAL"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":"< 5.22.10","status":"affected"}],"vendor":"ADOdb","product":"ADOdb","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.22.10"}],"ecosystem":"Packagist","package":"adodb/adodb-php","purl":"pkg:composer/adodb/adodb-php","source":"ghsa"}],"references":[{"url":"https://github.com/ADOdb/ADOdb/security/advisories/GHSA-vf2r-cxg9-p7rf","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ADOdb/ADOdb/issues/1083","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ADOdb/ADOdb/commit/5b8bd52cdcffefb4ecded1b399c98cfa516afe03","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00020.html","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54119","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ADOdb/ADOdb","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2025-08-05T13:57:17.840Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-54119","url":"https://www.cve.org/CVERecord?id=CVE-2025-54119","licence":"CVE Terms of Use","modified":"2025-11-03T17:45:02.291Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vf2r-cxg9-p7rf","url":"https://github.com/advisories/GHSA-vf2r-cxg9-p7rf","licence":"CC-BY-4.0","modified":"2025-11-03T19:50:18.058Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-54119","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54119","licence":"Public domain","modified":"2026-06-17T09:39:29.007Z"}],"updatedAt":"2026-11-25T22:59:02.040Z","epss":{"score":0.00556,"percentile":0.4777,"date":"2026-12-01T12:00:22.000Z"}}