CriticalGHSA-vf2r-cxg9-p7rfCVE-2025-54119

The ADOdb sqlite3 driver allows SQL injection

Published 4 Aug 2025 · Updated 3 Nov 2025

Is your project on an affected adodb/adodb-php?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

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
Update to the fixed version for your release line, for example:composer require adodb/adodb-php:^5.22.10

Details

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
adodb/adodb-php security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.