From Manual Code Analysis to CVE-2025–54119.
The ADOdb SQLite3 driver's metaColumns(), metaForeignKeys() and metaIndexes() methods inserted a caller-supplied table name directly into SQL queries without escaping. An attacker who could control that table name could execute arbitrary SQL statements against the SQLite database.
medium.com
Published on medium.com
CVE-2025–54119 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.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The methods concatenated the table name directly into SQL strings instead of using parameterised queries.
Impact
An attacker could execute arbitrary SQL statements, but only if the application passed user-controlled data directly to these methods; the advisory notes this is a worst-case usage scenario.
What the attacker needed
Application passes user input as table name; ADOdb version before 5.22.10
The fix
The vulnerability was fixed in ADOdb 5.22.10 by switching to prepared statements.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
ADOdb is a PHP library that helps programs talk to databases. Three of its functions built database commands by pasting in a table name without cleaning it first, so a malicious table name could contain extra database instructions. If a website passed user input into those functions, an attacker could run their own database commands.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.