{"schemaVersion":4,"id":"CVE-2026-136506","aliases":["UBUNTU-CVE-2026-136506","DEBIAN-CVE-2026-136506"],"status":"published","duplicateOf":null,"title":"SQL injection through names the driver puts into its own queries","description":"psqlODBC builds queries of its own from names, and put these names into them without escaping or qualification:\n\n- the database name in SQLForeignKeys();\n- the current schema name in catalog functions;\n- the table name in the currtid2() call that re-reads rows of updatable cursors;\n- column names in the inserts and updates of SQLSetPos() and SQLBulkOperations();\n- cursor names set with SQLSetCursorName() or returned as refcursors (FetchRefcursors=1);\n- parameter names (SQL_DESC_NAME) in procedure calls;\n- the = operator in an OID comparison in SQLColumns(), which the server resolves through search_path.\n\nThe column names of the fourth item are a variant of CVE-2026-120065 (GHSA-9cg8-r57h-h6jj). The fix for that advisory, in 18.00.0006, doubles \" in the stored row-identifier name, which the keyset queries and the WHERE clause of the positioned statements use. The column names that SQLSetPos() and SQLBulkOperations() put into the SET list of their UPDATE and into the column list of their SQL_ADD INSERT come from the catalog and were not covered by it, so a driver patched to 18.00.0006 is still affected by this one.\n\nA database user who can create a database, schema, table, column or operator with a crafted name, or an end user who supplies a cursor or parameter name to the application, can run SQL with the rights of the application's database role.\n\nVersions up to and including psqlODBC 18.00.0006 are affected.","dates":{"published":"2026-11-25T22:25:48.472Z","modified":"2026-12-02T15:15:53.575Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":4.1,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":4.1,"impact":9.8,"computed":true}]},"epss":{"probability":0.00451,"percentile":0.4091,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-11-26T00:00:00.000Z","score":0.00451,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00451,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00451,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00451,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00451,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00451,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00451,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00451,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00451,"percentile":0.4091}],"last30":[{"date":"2026-11-26T00:00:00.000Z","score":0.00451,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00451,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00451,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00451,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00451,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00451,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00451,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00451,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00451,"percentile":0.4091}]},"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","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"},{"id":"CWE-706","name":"Use of Incorrectly-Resolved Name or Reference","description":"The product uses a name or reference to access a resource, but the name/reference resolves to a resource that is outside of the intended control sphere.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/706.html"}],"affected":[{"vendor":"debian","product":"psqlodbc","name":"psqlodbc","label":"psqlodbc","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/psqlodbc","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}},{"text":"< 1:18.00.0007-1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1:18.00.0007-1","endInclusive":false}}],"versionsText":"All versions (No fix recorded) | < 1:18.00.0007-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"psqlodbc","name":"psqlodbc","label":"psqlodbc","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/psqlodbc","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"postgresql","product":"psqlodbc","name":"psqlODBC","label":"psqlodbc","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 18.00.0006","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"18.00.0006","endInclusive":true}}],"versionsText":"≤ 18.00.0006","eol":null,"hubHref":"/vendor/postgresql/psqlodbc"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-63r4-gjcj-f69v","label":"github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-63r4-gjcj-f69v","hostname":"github.com","tags":["Vendor Advisory"]},{"url":"https://odbc.postgresql.org/changelog/","label":"odbc.postgresql.org/changelog/","hostname":"odbc.postgresql.org","tags":["Release Notes"]},{"url":"https://ubuntu.com/security/CVE-2026-136506","label":"ubuntu.com/security/CVE-2026-136506","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-136506","label":"www.cve.org/CVERecord?id=CVE-2026-136506","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-136506","label":"security-tracker.debian.org/tracker/CVE-2026-136506","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2026:12716-1"],"duplicates":[],"related":["OPENSUSE-SU-2026:12716-1"]},"timeline":[{"kind":"published","date":"2026-11-25T22:25:48.472Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-12-02T15:15:53.575Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 7.5, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,75],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00451,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-12-02T15:15:53.575Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-12-02T15:15:53.575Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"osv_debian","date":"2026-12-02T15:15:53.575Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"osv_ubuntu","date":"2026-12-02T15:15:53.575Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-12-02T15:15:34.927Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00451,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T04:02:19.840Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T04:02:20.356Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T04:02:20.556Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T04:00:57.992Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T04:02:18.199Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T04:02:17.270Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T04:50:41.317Z","stale":false,"partial":false}}