CVE-2025-54119
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedADOdb 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceADOdb versions 5.22.9 and below contain an SQL injection vulnerability in the sqlite3 driver. The metaColumns(), metaForeignKeys(), and metaIndexes() methods improperly escape the $table parameter, allowing attackers to inject arbitrary SQL statements by providing a crafted table name when connected to a sqlite3 database.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Changed
- Confidentiality
- High
- Integrity
- High
- Availability
- Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check ADOdb library versionLocate the main ADOdb library file (typically adodb.inc.php or adodb/adodb.inc.php in the PHP include path) and look for the version definition, commonly found as define('ADODB_VERSION', '...') or in a version.php file.Affected if The version is 5.22.9 or below
-
Identify sqlite3 database connectionsSearch PHP codebase for connection initialization using NewADOConnection('sqlite3') or ADONewConnection('sqlite3'), or look for DSN strings containing 'sqlite3'.Affected if sqlite3 connections are established in the application
-
Find usage of vulnerable methods with sqlite3Search for calls to $db->metaColumns(), $db->metaForeignKeys(), or $db->metaIndexes() in the code, particularly where the $table argument could come from user request parameters, API input, or external data sources.Affected if These methods are called with table names derived from untrusted input while using a sqlite3 connection
-
Audit code paths passing table names to sqlite3Trace all code paths where table names are passed to metaColumns(), metaForeignKeys(), or metaIndexes() methods on sqlite3 connections. Check if those table names are sanitized or come from trusted sources.Affected if Table names passed to these methods are not hardcoded or originate from user-controlled sources
You are affected if ADOdb version is 5.22.9 or below AND you use sqlite3 database connections where the $table parameter in metaColumns(), metaForeignKeys(), or metaIndexes() can be controlled by external input.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade ADOdb to version 5.22.10 or later. As a workaround, ensure only trusted/controlled data is passed to the $table parameter of these methods, and audit code using sqlite3 connections.
ADOdb version 5.22.10
- Identify all applications and servers using ADOdb library version 5.22.9 or below
- Update ADOdb to version 5.22.10 or later using your package manager (e.g., composer update adodb/adodb-php)
- If using a system package manager (e.g., Debian apt), update the adodb package to the latest available version
- Test the update in a non-production environment to verify compatibility
- Deploy the updated version to production servers
- As an additional precaution, ensure that table name parameters passed to metaColumns(), metaForeignKeys(), and metaIndexes() methods are strictly validated and only accept controlled/whitelisted input
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation2.0 h
- Testing4.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,752.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-54119 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-54119 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data