Vulnerability · Published May 1, 2025 · Assigned by GitHub_M
CVE-2025-46337SQL injection in ADOdb PostgreSQL driver pg_insert_id() method
Critical 10.0
In plain English
A critical-severity SQL injection in ADOdb from ADOdb. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 55% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libphp-adodb | 5.21.4-1+deb12u1 | DEBIAN-CVE-2025-46337 |
| Debian:13 | libphp-adodb | 5.22.9-0.1 | DEBIAN-CVE-2025-46337 |
| Debian:14 | libphp-adodb | 5.22.9-0.1 | DEBIAN-CVE-2025-46337 |
| Packagist | adodb/adodb-php | 5.22.9 | GHSA-8x27-jwjr-8545 |
| Ubuntu:25.10 | libphp-adodb | 5.22.9-0.1 | UBUNTU-CVE-2025-46337 |
| Ubuntu:26.04:LTS | libphp-adodb | 5.22.9-0.1 | UBUNTU-CVE-2025-46337 |
Affected products (as reported)
Weakness: CWE-89 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L
References
- https://github.com/ADOdb/ADOdb/security/advisories/GHSA-8x27-jwjr-8545 x_refsource_CONFIRM
- https://github.com/ADOdb/ADOdb/issues/1070 x_refsource_MISC
- https://github.com/ADOdb/ADOdb/commit/11107d6d6e5160b62e05dff8a3a2678cf0e3a426 x_refsource_MISC
- https://xaliom.blogspot.com/2025/05/from-sast-to-cve-2025-46337.html
- https://lists.debian.org/debian-lts-announce/2025/05/msg00029.html