Skip to content
OpenAdvisories
Critical · 10.0 CVE-2025-46337 EUVD-2025-13113GHSA-8x27-jwjr-8545

SQL injection in ADOdb PostgreSQL driver pg_insert_id() method

Published May 1, 2025 · Updated May 26, 2025 · Assigned by GitHub_M

Description

ADOdb is a PHP database class library that provides abstractions for performing queries and managing databases. Prior to version 5.22.9, improper escaping of a query parameter may allow an attacker to execute arbitrary SQL statements when the code using ADOdb connects to a PostgreSQL database and calls pg_insert_id() with user-supplied data. This issue has been patched in version 5.22.9.

Affected products

VendorProductAffectedFixed
ADOdb ADOdb < 5.22.9 —

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.

ReleasePackageFixed inAdvisory
Debian 14 libphp-adodb 5.22.9-0.1 —
Debian 13 libphp-adodb 5.22.9-0.1 —
Debian 12 libphp-adodb 5.21.4-1+deb12u1 —
Debian 11 libphp-adodb 5.20.19-1+deb11u2 DLA-4177-1
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS libphp-adodb 5.22.9-0.1 —
Ubuntu 25.10 libphp-adodb 5.22.9-0.1 —
Ubuntu 25.04 libphp-adodb 5.22.8-0.1ubuntu0.1 USN-7530-1
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS libphp-adodb 5.21.4-1ubuntu0.1~esm1 USN-7530-2
Ubuntu Pro 22.04 LTS libphp-adodb 5.20.19-1ubuntu0.1+esm1 USN-7530-2
Ubuntu Pro 20.04 LTS libphp-adodb 5.20.16-1ubuntu0.1~esm2 USN-7530-2
Ubuntu Pro 18.04 LTS libphp-adodb 5.20.9-1ubuntu0.1~esm2 USN-7530-2
Ubuntu Pro 16.04 LTS libphp-adodb 5.20.3-1ubuntu1+esm2 USN-7530-2

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist adodb/adodb-php < 5.22.9 5.22.9 GHSA-8x27-jwjr-8545

Advisories 4

References