CVE-2026-120067 is a stack-based buffer overflow vulnerability in the PostgreSQL psqlODBC driver affecting versions before 18.00.0006. The issue occurs when updatable cursors add hidden ctid and oid columns to queries and copy server-sent values into a fixed 32-byte stack buffer without proper length checks. This can lead to memory corruption or application abort depending on build settings. The vulnerability requires a server or database user capable of sending crafted data or creating views with specific column names. A fix is available in version 18.00.0006.
On Unix-like systems, when logging is enabled, psqlODBC creates its log files in /tmp by default, named from the program name, user name, and process ID, with the default permissions, typically world-readable, and follows symbolic links when opening them. A local user can read query text and data from another user's logs, and can place a symbolic link at the predictable path so that the driver appends log data to a file of the attacker's choosing with the victim's privileges. Versions before psqlODBC 18.00.0006 are affected.
For an updatable cursor over a table without OIDs that has an auto-increment int4 column, psqlODBC uses that column to identify rows. It places the column's name, as reported by the server, between double quotes in its keyset queries and in the WHERE clause of its positioned SELECT, UPDATE, and DELETE statements, without doubling any double quote in the name. A column name that contains a double quote therefore changes the SQL that the driver runs with the application's privileges, including which rows a positioned UPDATE or DELETE affects. Any database user who can create a table that the application reads with an updatable cursor can choose such a name, and so can a server not trusted under current SSL settings. Versions before psqlODBC 18.00.0006 are affected.
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.
CVE-2026-120063 is a stack-based buffer overflow vulnerability in the PostgreSQL psqlODBC driver. It occurs when quoting schema or table names into a fixed 128-byte stack buffer, allowing writes up to two bytes beyond the buffer's end for long names. This overflow can corrupt the stack with a double quote and a null byte. The vulnerability affects versions before 18.00.0006 and arises from parsing SQL text that includes untrusted schema or table names. Exploitation requires forwarding untrusted SQL text to the driver.
A SQL injection vulnerability exists in the SQLSpecialColumns function of psqlODBC before version 18.00.0006. This function improperly concatenates table and schema names into its catalog query without escaping, allowing an attacker who can supply untrusted input to execute arbitrary SQL commands with the connection's privileges.
CVE-2026-120061 is a stack-based buffer overflow vulnerability in the psqlODBC driver for PostgreSQL. The issue arises from improper handling of ODBC escape sequences in SQL text, where argument offsets for {fn} escapes are written into a fixed-size stack array without bounds checking. This can lead to stack overflow and memory corruption. Additionally, certain escape sequences ({d}, {t}, {ts}, {escape}) write one byte beyond a 128-byte stack buffer. Applications forwarding untrusted SQL text to the driver are at risk. Versions before 18.00.0006 are affected.
psqlODBC trusts counts and lengths in server data in three places. SQLBulkOperations uses a server-supplied row count in a size subtraction that can underflow. SQLStatistics iterates index keys using a server-supplied key count without bounding it to the fixed storage. Bytea octal decoding reads up to two bytes past the end of a truncated escape sequence. A server not trusted under current SSL settings can crash the client or make it read out of bounds. Versions before psqlODBC 18.00.0006 are affected.
CVE-2026-120059 is a format string vulnerability in the PostgreSQL psqlODBC driver versions before 18.00.0006. It occurs when an updatable cursor over a table without OIDs with an auto-increment int4 column uses the column name in a printf-style format string. If the column name contains format directives, this can cause the driver to read unrelated memory, potentially crashing the application or leaking client memory into queries sent to the server.
CVE-2026-120058 is a high-severity out-of-bounds write vulnerability in the PostgreSQL psqlODBC driver. The driver sizes its row cache based on the initial column count from a cursor's first result but does not verify that subsequent FETCH replies have the same column count. A malicious or untrusted server can send a FETCH reply with more columns, causing the driver to write beyond allocated memory. Additionally, replies with fewer columns can cause an underflow in the unsigned field count. This issue is exploitable when UseDeclareFetch is enabled. Versions before 18.00.0006 are affected.
CVE-2026-120057 is a classic buffer overflow vulnerability in the PostgreSQL psqlODBC driver. The flaw occurs because psqlODBC copies data from a large-object read into the application's buffer using the length provided by the server without verifying that the buffer is large enough. This can allow a malicious or untrusted server, or a man-in-the-middle attacker, to overwrite adjacent memory in the client process. The vulnerability affects all psqlODBC versions before 18.00.0006 and can be triggered by fetching any large-object column.
CVE-2026-109448 is an integer overflow vulnerability in the PostgreSQL psqlODBC driver affecting versions from 08.01.0102 up to but not including 18.00.0005. The flaw arises from a signed 16-bit field used to store the binding count in SQLBindParameter, which can wrap around when binding parameter number 32768 or higher. This causes heap memory corruption, potentially crashing the application or leaving it in a corrupted state. Applications that construct parameter lists from untrusted input are particularly at risk.