{"schemaVersion":3,"id":"CVE-2025-46337","aliases":["MGASA-2025-0179","UBUNTU-CVE-2025-46337","USN-7530-1","DEBIAN-CVE-2025-46337","DLA-4177-1"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2025-05-01T17:20:10.658Z","modified":"2025-05-26T18:03:45.346Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":10,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":10,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":10,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L","exploitability":10,"impact":10,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":10,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L","exploitability":10,"impact":10,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":10,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00743,"percentile":0.5393,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.0040000000000000105,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00739},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00739,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00739,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00739,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00739,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00739,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00739,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00739,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00739,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00739,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00739,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00739,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00739,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00739,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00743,"percentile":0.5393}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00739,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00739,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00739,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00739,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00739,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00739,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00739,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00743,"percentile":0.5393}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","description":"The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/89.html"}],"affected":[{"vendor":"adodb","product":"adodb","name":"ADOdb","label":"adodb","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 5.22.9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.22.9","eol":null,"hubHref":"/vendor/adodb/adodb"},{"vendor":"debian","product":"libphp-adodb","name":"libphp-adodb","label":"libphp-adodb","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libphp-adodb","purlType":"deb","versions":[{"text":"< 5.21.4-1+deb12u1","noFixRecorded":false,"fixedIn":null},{"text":"< 5.22.9-0.1","noFixRecorded":false,"fixedIn":null},{"text":"< 5.20.19-1+deb11u2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.21.4-1+deb12u1 | < 5.22.9-0.1 | < 5.20.19-1+deb11u2","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libphp-adodb","name":"libphp-adodb","label":"libphp-adodb","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libphp-adodb","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 5.22.9-0.1","noFixRecorded":false,"fixedIn":null},{"text":"< 5.22.8-0.1ubuntu0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 5.22.9-0.1 | < 5.22.8-0.1ubuntu0.1","eol":null,"hubHref":null},{"vendor":"mageia","product":"php-adodb","name":"php-adodb","label":"php-adodb","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/php-adodb","purlType":"rpm","versions":[{"text":"< 5.22.9-1.mga9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.22.9-1.mga9","eol":null,"hubHref":null}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/ADOdb/ADOdb/security/advisories/GHSA-8x27-jwjr-8545","label":"github.com/ADOdb/ADOdb/security/advisories/GHSA-8x27-jwjr-8545","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT"]},{"url":"https://github.com/ADOdb/ADOdb/issues/1070","label":"github.com/ADOdb/ADOdb/issues/1070","hostname":"github.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://github.com/ADOdb/ADOdb/commit/11107d6d6e5160b62e05dff8a3a2678cf0e3a426","label":"github.com/ADOdb/ADOdb/commit/11107d6d6e5160b62e05dff8a3a2678cf0e3a426","hostname":"github.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://xaliom.blogspot.com/2025/05/from-sast-to-cve-2025-46337.html","label":"xaliom.blogspot.com/2025/05/from-sast-to-cve-2025-46337.html","hostname":"xaliom.blogspot.com","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00029.html","label":"lists.debian.org/debian-lts-announce/2025/05/msg00029.html","hostname":"lists.debian.org","tags":[]},{"url":"https://advisories.mageia.org/MGASA-2025-0179.html","label":"advisories.mageia.org/MGASA-2025-0179.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=34339","label":"bugs.mageia.org/show_bug.cgi?id=34339","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-7530-1","label":"ubuntu.com/security/notices/USN-7530-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://github.com/ADOdb/ADOdb/releases/tag/v5.22.9","label":"github.com/ADOdb/ADOdb/releases/tag/v5.22.9","hostname":"github.com","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2025-46337","label":"ubuntu.com/security/CVE-2025-46337","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-46337","label":"www.cve.org/CVERecord?id=CVE-2025-46337","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-46337","label":"security-tracker.debian.org/tracker/CVE-2025-46337","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2025-05-01T17:20:10.658Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-05-26T18:03:45.346Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T20:57:13.543Z","stale":false,"partial":false}}