Description
The qstr method in the PDO driver in the ADOdb Library for PHP before 5.x before 5.20.7 might allow remote attackers to conduct SQL injection attacks via vectors related to incorrect quoting.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libphp-adodb | 5.20.6-1 | — |
| Debian 13 | libphp-adodb | 5.20.6-1 | — |
| Debian 12 | libphp-adodb | 5.20.6-1 | — |
| Debian 7 | libphp-adodb | 5.15-1+deb7u1 | DLA-620-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | libphp-adodb | 5.20.19-1ubuntu0.1 | USN-6825-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | libphp-adodb | 5.20.16-1ubuntu0.1~esm1 | USN-6825-1 |
| Ubuntu Pro 18.04 LTS | libphp-adodb | 5.20.9-1ubuntu0.1~esm1 | USN-6825-1 |
| Ubuntu Pro 16.04 LTS | libphp-adodb | 5.20.3-1ubuntu1+esm1 | USN-6825-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | adodb/adodb-php | >= 5.0, < 5.20.7 | 5.20.7 | GHSA-3fj4-q72x-x2g9 |
Advisories 2
- USN-6825-1 libphp-adodb vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- DLA-620-1 libphp-adodb - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- FEDORA-2016-c5ec2c17e6 vendor-advisory
- [oss-security] 20160907 ADOdb PDO driver: incorrect quoting may allow SQL injection mailing-list
- 92969 vdb-entry
- https://github.com/ADOdb/ADOdb/issues/226
- GLSA-201701-59 vendor-advisory
- [oss-security] 20160915 Re: ADOdb PDO driver: incorrect quoting may allow SQL injection mailing-list
- https://github.com/ADOdb/ADOdb/blob/v5.20.7/docs/changelog.md
- https://github.com/ADOdb/ADOdb/commit/bd9eca9f40220f9918ec3cc7ae9ef422b3e448b8