All reports
High

psqlodbc: psqlodbc: Arbitrary code execution via unvalidated column and row indexes

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-120064

Probability of exploitation in the next 30 days: 0.34%

FIRST EPSS · 2026-11-20

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.

A flaw was found in psqlODBC. Several driver functions do not validate application-supplied column numbers or row indexes before using them as array indices. An attacker capable of submitting untrusted column or row values to an application using the driver can trigger out-of-bounds memory reads and writes. This flaw could allow an attacker to achieve arbitrary code execution, access sensitive memory data, or cause a denial of service (DoS) by crashing the application.