# CVE-2025-46337: SQL injection in ADOdb PostgreSQL driver pg_insert_id() method

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.76%, higher than 56% of CVEs (2026-12-02)
- Published: 2025-05-01T13:59:51.000Z
- Modified: 2026-06-17T09:26:15.620Z
- Also known as: GHSA-8x27-jwjr-8545
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- 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.

(As written by CVE List.)

## Affected

- ADOdb ADOdb: < 5.22.9
- adodb/adodb-php (Packagist): before 5.22.9

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L`
- GitHub: CVSS:3.1 10.0 Critical `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> (web)
- <https://github.com/ADOdb/ADOdb/issues/1070> (web)
- <https://github.com/ADOdb/ADOdb/commit/11107d6d6e5160b62e05dff8a3a2678cf0e3a426> (web)
- <https://xaliom.blogspot.com/2025/05/from-sast-to-cve-2025-46337.html> (web)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00029.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-46337> (advisory)
- <https://github.com/ADOdb/ADOdb> (package)

## Sources

- CVE List: [CVE-2025-46337](https://www.cve.org/CVERecord?id=CVE-2025-46337), CVE Terms of Use, modified 2025-05-26
- GitHub Advisory Database: [GHSA-8x27-jwjr-8545](https://github.com/advisories/GHSA-8x27-jwjr-8545), CC-BY-4.0, modified 2025-05-26
- NVD: [CVE-2025-46337](https://nvd.nist.gov/vuln/detail/CVE-2025-46337), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-46337 · Whole record: https://cve.day/CVE-2025-46337.json · Rebuilt by cve.day 2026-11-25T22:58:57.368Z
