{"id":"CVE-2025-46337","published":"2025-05-01T17:20:10Z","modified":"2025-05-26T18:03:45Z","title":"SQL injection in ADOdb PostgreSQL driver pg_insert_id() method","vendor":"ADOdb","product":"ADOdb","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00756,"percentile":0.5606,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/ADOdb/ADOdb/security/advisories/GHSA-8x27-jwjr-8545","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ADOdb/ADOdb/issues/1070","tags":["x_refsource_MISC"]},{"url":"https://github.com/ADOdb/ADOdb/commit/11107d6d6e5160b62e05dff8a3a2678cf0e3a426","tags":["x_refsource_MISC"]},{"url":"https://xaliom.blogspot.com/2025/05/from-sast-to-cve-2025-46337.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00029.html","tags":[]}],"priority":{"score":18.2,"factors":[{"name":"EPSS percentile","points":11.21},{"name":"CVSS severity","points":7.0}]},"vendorSlug":"adodb","affectedVersions":[{"vendor":"ADOdb","product":"ADOdb","versions":["< 5.22.9"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2025-05-02T17:57:27.460605Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"adodb/adodb-php","vulnerableRanges":["<5.22.9"],"patched":["5.22.9"],"from":["GHSA-8x27-jwjr-8545"],"provenance":"source"}],"summary":{"text":"The ADOdb PHP database library contains an SQL injection flaw in the PostgreSQL driver's pg_insert_id() method, caused by improper escaping of a query parameter. An unauthenticated remote attacker can exploit it without user interaction, provided the application connects to a PostgreSQL database and calls pg_insert_id() with user-supplied data, allowing arbitrary SQL statements to be executed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:33:51Z"},"euvd":{"id":"EUVD-2025-13113","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-adodb-cve-2021-3850","parents":[{"from":"CVE-2021-3850","to":"CVE-2025-46337","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["drivers/adodb-postgres64.inc.php"],"commits":["https://github.com/adodb/adodb/commit/952de6c4273d9b1e91c2b838044f8c2111150c29","https://github.com/ADOdb/ADOdb/commit/b4d5ce70034c5aac3a1d51d317d93c037a0938d2","https://github.com/ADOdb/ADOdb/commit/11107d6d6e5160b62e05dff8a3a2678cf0e3a426"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2016-4855","published":"2017-05-12","fixed":"5.20.6","kev":false},{"cve":"CVE-2016-7405","published":"2016-10-03","fixed":"5.20.7","kev":false},{"cve":"CVE-2021-3850","published":"2022-01-25","fixed":"5.21.4","kev":false},{"cve":"CVE-2025-46337","published":"2025-05-01","fixed":"5.22.9","kev":false},{"cve":"CVE-2025-54119","published":"2025-08-05","fixed":"5.22.10","kev":false,"link":{"from":"CVE-2025-46337","to":"CVE-2025-54119","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:adodb/adodb-php","fromFixed":"5.22.9","toFixed":"5.22.10","daysApart":96},{"kind":"similar","provenance":"machine","score":0.5,"basis":"same product + CWE + description similarity"}]}}],"package":"Packagist:adodb/adodb-php"}}