{"id":"CVE-2026-120064","published":"2026-11-02T19:09:13Z","modified":"2026-11-02T19:36:58Z","title":"psqlODBC does not validate column numbers and row indexes in binding and descriptor functions","vendor":"PostgreSQL","product":"psqlODBC","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00342,"percentile":0.28453,"provenance":"source"},"cwes":[{"id":"CWE-129","name":"Improper Validation of Array Index"},{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"references":[{"url":"https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-7pq2-q7mj-ph8c","tags":["vendor-advisory"]}],"priority":{"score":10.9,"factors":[{"name":"EPSS percentile","points":5.69},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"postgresql","affectedVersions":[{"vendor":"PostgreSQL","product":"psqlODBC","versions":["< 18.00.0006"]}],"solutions":{"items":["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."],"from":"CVE.org CNA","provenance":"source"},"workarounds":{"items":["Validate column numbers (1..32767 and within the result set) and row numbers (within the rowset) in the application before calling the driver."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-11-02T19:36:44.618557Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-115377","exploited":false,"provenance":"source"}}