SQL injection in ADOdb PostgreSQL driver pg_insert_id() method
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-89.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| ADOdb | ADOdb | before 5.22.9 | 5.22.9 | Patch available | CNA |
| — | adodb/adodb-php (Packagist) | before 5.22.9 | 5.22.9 | Patch available | GHSA-8x27-jwjr-8545 |
- ADOdb VendorADOdb Affected before 5.22.9 Fixed in 5.22.9 Patch available CNA
- adodb/adodb-php (Packagist) Vendor— Affected before 5.22.9 Fixed in 5.22.9 Patch available GHSA-8x27-jwjr-8545
Remediation
- Fix · CNA ADOdb (ADOdb) Fixed in 5.22.9
- Fix · GHSA-8x27-jwjr-8545 adodb/adodb-php (Packagist) Fixed in 5.22.9 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2025-46337
- 2026-10-03 Alias added: GHSA-8x27-jwjr-8545
References
Other 6
- https://github.com/ADOdb/ADOdb/security/advisories/GHSA-8x27-jwjr-8545
- https://github.com/ADOdb/ADOdb/issues/1070
- https://github.com/ADOdb/ADOdb/commit/11107d6d6e5160b62e05dff8a3a2678cf0e3a426
- https://github.com/ADOdb/ADOdb
- https://lists.debian.org/debian-lts-announce/2025/05/msg00029.html
- https://xaliom.blogspot.com/2025/05/from-sast-to-cve-2025-46337.html
More ADOdb vulnerabilities
- TI-2025-33962 ADOdb's sqlite3 driver allows SQL injection CVSS 3.1CRITICAL 10.0
Sources
- CVE-2025-46337 · CVE Program
- CVE-2025-46337 · NVD
- FIRST EPSS
- GHSA-8x27-jwjr-8545 · GitHub Advisory Database · CC BY 4.0
- CVE-2025-46337 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences