CVE-2025-46337
published critical CVSS 3.1 · 10.0SQL injection in ADOdb PostgreSQL driver pg_insert_id() method
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ADOdb | — | ADOdb< 5.22.9 | Affected | Not stated | GitHub_M |
| Debian | bullseye | libphp-adodb | Advisory build | 5.20.19-1+deb11u2 | DLA-4177-1 |
| Ubuntu | bionic | libphp-adodb | Advisory build | 5.20.9-1ubuntu0.1~esm2 | USN-7530-2 |
| Ubuntu | focal | libphp-adodb | Advisory build | 5.20.16-1ubuntu0.1~esm2 | USN-7530-2 |
| Ubuntu | jammy | libphp-adodb | Advisory build | 5.20.19-1ubuntu0.1+esm1 | USN-7530-2 |
| Ubuntu | noble | libphp-adodb | Advisory build | 5.21.4-1ubuntu0.1~esm1 | USN-7530-2 |
| Ubuntu | plucky | libphp-adodb | Advisory build | 5.22.8-0.1ubuntu0.1 | USN-7530-1 |
| Ubuntu | xenial | libphp-adodb | Advisory build | 5.20.3-1ubuntu1+esm2 | USN-7530-2 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 10.0 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ADOdb | ADOdb | < 5.22.9 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-89 CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
References
5- https://github.com/ADOdb/ADOdb/commit/11107d6d6e5160b62e05dff8a3a2678cf0e3a426
- https://github.com/ADOdb/ADOdb/issues/1070
- https://github.com/ADOdb/ADOdb/security/advisories/GHSA-8x27-jwjr-8545
- https://lists.debian.org/debian-lts-announce/2025/05/msg00029.html
- https://xaliom.blogspot.com/2025/05/from-sast-to-cve-2025-46337.html
Provider assertions
3GitHub_M · cna
SQL injection in ADOdb PostgreSQL driver pg_insert_id() method
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 08b25eb3143d50cb888a850461ed588f5b57714669a35fc3dbb2ce5d48f49a8a
- Ingested
- 23 Sep 2026, 08:49:21 UTC
- Source record
- Official CVE record