Every CVE Search/ Get API key

CVE-2025-54119

ADOdb's sqlite3 driver allows SQL injection

10.0 CriticalFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
Low

Exploit likelihood

0.56%Up 0.5 points since Aug 5, 2025
90%50%10%1%

What each source reports

CVE List Score used 10.0

ADOdb's sqlite3 driver allows SQL injection

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.

Record
CVE-2025-54119
CVSS 3.1
10.0 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L
Weakness
CWE-89
Updated
2026-11-02
EUVDEUVD-2025-23567 10.0

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.

Record
EUVD-2025-23567
CVSS 3.1
10.0 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L
Updated
2026-11-02
GitHub AdvisoriesGHSA-vf2r-cxg9-p7rf 10.0

The ADOdb sqlite3 driver allows SQL injection

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.

Record
GHSA-vf2r-cxg9-p7rf
CVSS 3.1
10.0 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L
Weakness
CWE-89
Updated
2026-11-02
NVD 10.0

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.

Record
CVE-2025-54119
CVSS 3.1
10.0 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L
Weakness
CWE-89
Updated
2026-11-02
OSV 10.0

ADOdb's sqlite3 driver allows SQL injection

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.

Record
CVE-2025-54119
CVSS 3.1
10.0 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L
Weakness
CWE-89
Updated
2026-11-02
OSVDEBIAN-CVE-2025-54119 10.0

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.

Record
DEBIAN-CVE-2025-54119
CVSS 3.1
10.0 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L
Updated
2026-11-02
OSVGHSA-vf2r-cxg9-p7rf 10.0

The ADOdb sqlite3 driver allows SQL injection

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.

Record
GHSA-vf2r-cxg9-p7rf
CVSS 3.1
10.0 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L
Weakness
CWE-89
Updated
2026-11-02
OSVUBUNTU-CVE-2025-54119 10.0

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.

Record
UBUNTU-CVE-2025-54119
CVSS 3.1
10.0 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L
Updated
2026-11-04

Affected products

Affected packages

Affected packages
PackageAffectedFixed
adodb/adodb-php
Packagist
through 5.22.9
5.22.10
libphp-adodb
Debian:12
before 5.21.4-1+deb12u2, plus listed versions
5.21.4-15.21.4-1+deb12u1
5.21.4-1+deb12u2
libphp-adodb
Debian:13
before 5.22.9-0.1+deb13u1, plus listed versions
5.22.9-0.1
5.22.9-0.1+deb13u1
libphp-adodb
Debian:14
before 5.22.10-0.1, plus listed versions
5.22.9-0.1
5.22.10-0.1
libphp-adodb
Debian:11
before 5.20.19-1+deb11u3, plus listed versions
5.20.19-15.20.19-1+deb11u15.20.19-1+deb11u2
5.20.19-1+deb11u3
adodb/adodb-php
Packagist
before 5.22.10, plus listed versions
v5.19v5.20.0v5.20.1v5.20.10v5.20.11
Show 35 moreShow less
v5.20.12v5.20.13v5.20.14v5.20.15v5.20.16v5.20.17v5.20.18v5.20.19v5.20.2v5.20.20v5.20.21v5.20.3v5.20.4v5.20.5v5.20.6v5.20.7v5.20.8v5.20.9v5.21.0v5.21.0-beta.1v5.21.0-rc.1v5.21.1v5.21.2v5.21.3v5.21.4v5.22.0v5.22.1v5.22.2v5.22.3v5.22.4v5.22.5v5.22.6v5.22.7v5.22.8v5.22.9
5.22.10
libphp-adodb
Ubuntu:Pro:16.04:LTS
All versions, plus listed versions
5.18a-15.20.1-15.20.2-15.20.2-25.20.3-15.20.3-1ubuntu15.20.3-1ubuntu1+esm15.20.3-1ubuntu1+esm2
None known
libphp-adodb
Ubuntu:Pro:18.04:LTS
All versions, plus listed versions
5.20.9-15.20.9-1ubuntu0.1~esm15.20.9-1ubuntu0.1~esm2
None known
libphp-adodb
Ubuntu:Pro:20.04:LTS
All versions, plus listed versions
5.20.14-15.20.15-15.20.16-15.20.16-1ubuntu0.1~esm15.20.16-1ubuntu0.1~esm2
None known
libphp-adodb
Ubuntu:Pro:22.04:LTS
All versions, plus listed versions
5.20.19-15.20.19-1ubuntu0.15.20.19-1ubuntu0.1+esm1
None known
libphp-adodb
Ubuntu:Pro:24.04:LTS
All versions, plus listed versions
5.21.4-15.21.4-1ubuntu0.1~esm1
None known
libphp-adodb
Ubuntu:25.10
All versions, plus listed versions
5.22.8-0.15.22.9-0.1
None known
libphp-adodb
Ubuntu:26.10
All versions, plus listed versions
5.22.11-1
None known

History

History
RecordedChangedSources
affected, factsOSV
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2025-54119 is a critical vulnerability (CVSS 10.0) in Adodb, published August 4, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.56%, the 46th percentile. Fixed in adodb/adodb-php 5.22.10.

References

Show 5 moreShow less
MoveEnter Open