{"id":"CVE-2025-46337","aliases":["GHSA-8x27-jwjr-8545"],"url":"https://o3.security/vulnerability/CVE-2025-46337","summary":"SQL injection in ADOdb PostgreSQL driver pg_insert_id() method","details":"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.\n\nNote that the indicated Severity corresponds to a worst-case usage scenario.\n\n### Impact\nPostgreSQL drivers (postgres64, postgres7, postgres8, postgres9).\n\n### Patches\nVulnerability is fixed in ADOdb 5.22.9 (11107d6d6e5160b62e05dff8a3a2678cf0e3a426).\n\n### Workarounds\nOnly pass controlled data to pg_insert_id() method's $fieldname parameter, or escape it with pg_escape_identifier() first.\n\n### References\n- Issue https://github.com/ADOdb/ADOdb/issues/1070\n- [Blog post](https://xaliom.blogspot.com/2025/05/from-sast-to-cve-2025-46337.html) by Marco Nappi\n\n### Credits\nThanks to Marco Nappi (@mrcnpp) for reporting this vulnerability.","published":"2025-05-01T17:20:10.658Z","modified":"2026-08-12T03:51:31.151243760Z","cvss":{"score":10,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L"},"epss":{"score":0.00733,"percentile":0.51587,"asOf":"2026-08-24"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"adodb/adodb-php","fixedVersion":"5.22.9"}],"fix":{"url":"https://github.com/ADOdb/ADOdb/commit/11107d6d6e5160b62e05dff8a3a2678cf0e3a426","label":"ADOdb/ADOdb@11107d6"},"references":[{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00029.html"},{"type":"ADVISORY","url":"https://github.com/ADOdb/ADOdb/security/advisories/GHSA-8x27-jwjr-8545"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/46xxx/CVE-2025-46337.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-46337"},{"type":"REPORT","url":"https://github.com/ADOdb/ADOdb/issues/1070"},{"type":"FIX","url":"https://github.com/ADOdb/ADOdb/commit/11107d6d6e5160b62e05dff8a3a2678cf0e3a426"},{"type":"ARTICLE","url":"https://xaliom.blogspot.com/2025/05/from-sast-to-cve-2025-46337.html"},{"type":"PACKAGE","url":"https://github.com/ADOdb/ADOdb"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:31.151243760Z"}}