{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-120064","assignerOrgId":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","state":"PUBLISHED","assignerShortName":"PostgreSQL","dateReserved":"2026-10-30T19:25:18.920Z","datePublished":"2026-11-02T19:09:13.482Z","dateUpdated":"2026-11-02T19:36:58.409Z"},"containers":{"cna":{"providerMetadata":{"orgId":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","shortName":"PostgreSQL","dateUpdated":"2026-11-02T19:09:13.482Z"},"title":"psqlODBC does not validate column numbers and row indexes in binding and descriptor functions","datePublic":"2026-11-02T00:00:00.000Z","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","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"}],"defaultStatus":"unaffected","versions":[{"version":"0","lessThan":"18.00.0006","status":"affected","versionType":"custom"}]}],"problemTypes":[{"descriptions":[{"lang":"en","type":"CWE","cweId":"CWE-129","description":"CWE-129 Improper Validation of Array Index"}]},{"descriptions":[{"lang":"en","type":"CWE","cweId":"CWE-190","description":"CWE-190 Integer Overflow or Wraparound"}]}],"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"}}],"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."}],"references":[{"url":"https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-7pq2-q7mj-ph8c","tags":["vendor-advisory"]}]},"adp":[{"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"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2026-11-02T19:36:58.409Z"}}]}}