CVE-2025-46337
SQL injection in ADOdb PostgreSQL driver pg_insert_id() method
Reported by github_m · Published May 1, 2025
adodb/adodb-php is fixed in 5.22.9 (Packagist)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| adodb/adodb-php | Packagist | 5.22.9 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| ADOdb | ADOdb | < 5.22.9 |
| adodb | adodb-php | 0 |
| ADOdb | ADOdb | 0 |
Timeline
- May 1, 2025 CVE Published
- May 1, 2025 Coalition ESS Score (15 in total, the first dated here)
- May 1, 2025 PoC Published (9 in total, the first dated here)
- May 2, 2025 EPSS Score (30 in total, the first dated here)
- Dec 13, 2025 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-46337
vulnetix vdb fixes CVE-2025-46337
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-46337/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
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://nvd.nist.gov/vuln/detail/CVE-2025-46337 advisory
- https://github.com/advisories/GHSA-8x27-jwjr-8545 advisory
- https://github.com/ADOdb/ADOdb url
- https://xaliom.blogspot.com/2025/05/from-sast-to-cve-2025-46337.html url
- https://lists.debian.org/debian-lts-announce/2025/05/msg00029.html url