{"id":"CVE-2026-120064","state":"PUBLISHED","title":"psqlODBC does not validate column numbers and row indexes in binding and descriptor functions","description":"Several psqlODBC entry points use an application-supplied column number or row index as an array index without validating it. SQLBindCol with a column number above 32767 wraps the binding count negative and a later copy runs off the array. A negative SQL_DESC_COUNT on an application row descriptor unbinds columns at negative indexes. SQLColAttribute with a very large column number uses a negative index. SQLSetPos(SQL_ADD) does not check the row number against the rowset size. An application that forwards untrusted column or row numbers exposes its process to out-of-bounds reads and writes. Versions before psqlODBC 18.00.0006 are affected.","publishedAt":"2026-11-02T19:09:13.482Z","updatedAt":"2026-11-02T19:36:58.409Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"PostgreSQL"},"assigner":"PostgreSQL","products":["PostgreSQL psqlODBC"],"affected":[{"vendor":"PostgreSQL","product":"psqlODBC","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"18.00.0006","versionType":"custom"}],"repo":"https://github.com/postgresql-interfaces/psqlodbc","programFiles":["bind.c","pgapi30.c","results.c"],"programRoutines":[{"name":"PGAPI_BindCol"},{"name":"reset_a_column_binding"},{"name":"column_bindings_set"},{"name":"PGAPI_ColAttributes"},{"name":"PGAPI_SetPos"}]}],"references":["https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-7pq2-q7mj-ph8c"],"weaknesses":["CWE-129","CWE-190"],"ingestedAt":"2026-11-02T19:44:06.264Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/120xxx/CVE-2026-120064.json","commit":"0202f7a38671c4144f3184c7ccaa1623bae3e8b4","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-120064","state":"PUBLISHED","datePublished":"2026-11-02T19:09:13.482Z","dateUpdated":"2026-11-02T19:36:58.409Z","assignerShortName":"PostgreSQL","assignerOrgId":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","dateReserved":"2026-10-30T19:25:18.920Z"},"containers":{"cna":{"title":"psqlODBC does not validate column numbers and row indexes in binding and descriptor functions","descriptions":[{"lang":"en","value":"Several psqlODBC entry points use an application-supplied column number or row index as an array index without validating it. SQLBindCol with a column number above 32767 wraps the binding count negative and a later copy runs off the array. A negative SQL_DESC_COUNT on an application row descriptor unbinds columns at negative indexes. SQLColAttribute with a very large column number uses a negative index. SQLSetPos(SQL_ADD) does not check the row number against the rowset size. An application that forwards untrusted column or row numbers exposes its process to out-of-bounds reads and writes. Versions before psqlODBC 18.00.0006 are affected."}],"affected":[{"vendor":"PostgreSQL","product":"psqlODBC","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"18.00.0006","versionType":"custom"}],"repo":"https://github.com/postgresql-interfaces/psqlodbc","programFiles":["bind.c","pgapi30.c","results.c"],"programRoutines":[{"name":"PGAPI_BindCol"},{"name":"reset_a_column_binding"},{"name":"column_bindings_set"},{"name":"PGAPI_ColAttributes"},{"name":"PGAPI_SetPos"}]}],"references":[{"url":"https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-7pq2-q7mj-ph8c","tags":["vendor-advisory"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.5,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-129","lang":"en","type":"CWE","description":"CWE-129 Improper Validation of Array Index"}]},{"descriptions":[{"cweId":"CWE-190","lang":"en","type":"CWE","description":"CWE-190 Integer Overflow or Wraparound"}]}],"providerMetadata":{"shortName":"PostgreSQL","orgId":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","dateUpdated":"2026-11-02T19:09:13.482Z"},"datePublic":"2026-11-02T00:00:00.000Z","workarounds":[{"lang":"en","value":"Validate column numbers (1..32767 and within the result set) and row numbers (within the rowset) in the application before calling the driver."}],"solutions":[{"lang":"en","value":"Upgrade to psqlODBC 18.00.0006 or later. SQLBindCol rejects column numbers above 32767 with SQLSTATE 07009, a negative descriptor count is ignored, and the column and row indexes are range-checked."}]},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-02T19:36:44.618557Z","id":"CVE-2026-120064","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-02T19:36:58.409Z"}}]}}}