# CVE-2025-46337: SQL injection in ADOdb PostgreSQL driver pg\_insert\_id() method

- Priority: **Act now**
- Reason: Listed as exploited by ENISA (23-11-2026)
- Next step: Check applicability: affected before 5.22.9 (CNA); fix release not confirmed
- Status: published
- Published: 2025-05-01 · Modified: 2025-05-26
- Aliases: MGASA-2025-0179, UBUNTU-CVE-2025-46337, USN-7530-1, DEBIAN-CVE-2025-46337, DLA-4177-1, USN-7530-2
- Record: https://cvemate.com/vulnerability/CVE-2025-46337 · JSON: https://cvemate.com/vulnerability/CVE-2025-46337/json

## Description

```text
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.
```

## Signals

- CVSS: 10 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L
- EPSS: 0.764%, percentile 56.792%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA listed 2026-11-23, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- adodb adodb: \< 5.22.9
- debian libphp-adodb (Debian): \< 5.20.19-1+deb11u2 \| \< 5.21.4-1+deb12u1 \| \< 5.22.9-0.1
- ubuntu libphp-adodb (Ubuntu): All versions (No fix recorded) \| \< 5.22.8-0.1ubuntu0.1 \| \< 5.20.3-1ubuntu1+esm2 \| \< 5.20.9-1ubuntu0.1~esm2 \| \< 5.20.16-1ubuntu0.1~esm2 \| \< 5.20.19-1ubuntu0.1+esm1 \| \< 5.21.4-1ubuntu0.1~esm1 \| \< 5.22.9-0.1
- mageia php-adodb (Mageia): \< 5.22.9-1.mga9

## References

- <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://xaliom.blogspot.com/2025/05/from-sast-to-cve-2025-46337.html>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00029.html>
- <https://advisories.mageia.org/MGASA-2025-0179.html>
- <https://bugs.mageia.org/show_bug.cgi?id=34339>
- <https://ubuntu.com/security/notices/USN-7530-1>
- <https://github.com/ADOdb/ADOdb/releases/tag/v5.22.9>
- <https://ubuntu.com/security/CVE-2025-46337>
- <https://www.cve.org/CVERecord?id=CVE-2025-46337>
- <https://security-tracker.debian.org/tracker/CVE-2025-46337>
- <https://ubuntu.com/security/notices/USN-7530-2>

---

Data as of 2026-12-05T11:43:10.743Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
