{"id":"CVE-2025-46337","state":"PUBLISHED","title":"SQL injection in ADOdb PostgreSQL driver pg_insert_id() method","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.","publishedAt":"2025-05-01T17:20:10.658Z","updatedAt":"2025-05-26T18:03:45.346Z","severity":{"score":10,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["ADOdb ADOdb"],"affected":[{"vendor":"ADOdb","product":"ADOdb","versions":[{"version":"< 5.22.9","status":"affected"}]}],"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"],"weaknesses":["CWE-89"],"ingestedAt":"2026-10-29T20:09:17.366Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/46xxx/CVE-2025-46337.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-46337","state":"PUBLISHED","datePublished":"2025-05-01T17:20:10.658Z","dateUpdated":"2025-05-26T18:03:45.346Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2025-04-22T22:41:54.912Z"},"containers":{"cna":{"title":"SQL injection in ADOdb PostgreSQL driver pg_insert_id() method","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"ADOdb","product":"ADOdb","versions":[{"version":"< 5.22.9","status":"affected"}]}],"references":[{"url":"https://github.com/ADOdb/ADOdb/security/advisories/GHSA-8x27-jwjr-8545","name":"https://github.com/ADOdb/ADOdb/security/advisories/GHSA-8x27-jwjr-8545","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ADOdb/ADOdb/issues/1070","name":"https://github.com/ADOdb/ADOdb/issues/1070","tags":["x_refsource_MISC"]},{"url":"https://github.com/ADOdb/ADOdb/commit/11107d6d6e5160b62e05dff8a3a2678cf0e3a426","name":"https://github.com/ADOdb/ADOdb/commit/11107d6d6e5160b62e05dff8a3a2678cf0e3a426","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":10,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-89","lang":"en","description":"CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2025-05-01T17:20:10.658Z"},"source":{"advisory":"GHSA-8x27-jwjr-8545","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-05-02T17:57:27.460605Z","id":"CVE-2025-46337","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-05-02T17:57:58.870Z"}},{"title":"CVE Program Container","references":[{"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"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-05-26T18:03:45.346Z"}}]}}}