Skip to content
OpenAdvisories

Package · Ubuntu

psqlodbc

12 known vulnerabilities.

12 results · Feed

  • Medium 5.9

    psqlODBC stack buffer overflow copying ctid and oid values for updatable cursors

    For updatable cursors, which are enabled by default, psqlODBC adds hidden ctid and, for tables with OIDs, oid columns to the query. It copies each value into a 32-byte stack buffer using the length the server sent, without checking it against the buffer size,…

  • High 7.1

    psqlODBC does not escape a server-supplied column name in its updatable-cursor queries

    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 o…

  • Medium 5.3

    psqlODBC log files are created with default permissions at a predictable path and follow symbolic links

    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 l…

  • High 7.5

    psqlODBC does not validate column numbers and row indexes in binding and descriptor functions

    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…

  • Medium 5.9

    psqlODBC stack buffer overflow when quoting long schema and table names

    When psqlODBC quotes a schema or table name into a 128-byte stack buffer, its length check lets it write up to two bytes past the end of the buffer for a long name. The names come from the application's SQL text: the table of a statement the driver parses to …

  • High 7.5

    psqlODBC SQL injection through SQLSpecialColumns table and schema names

    SQLSpecialColumns in psqlODBC splices the table and schema names it receives into its catalog query without escaping them, while the other catalog functions escape them. An application that passes an untrusted table or schema name to SQLSpecialColumns lets th…

  • High 7.5

    psqlODBC ODBC escape parser stack buffer overflow

    The psqlODBC parser for ODBC escape sequences in application SQL text writes the argument offsets of a {fn} escape into a fixed 16-entry stack array without a bound and does not initialize the array. An escape with too many arguments overflows the stack, and …

  • Medium 5.9

    psqlODBC does not validate server-supplied counts and lengths

    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 fixe…

  • Medium 6.8

    psqlODBC uses a server-supplied column name as a format string

    For an updatable cursor over a table without OIDs that has an auto-increment int4 column, psqlODBC places that column's name, as reported by the server, into a printf-style format string. It later expands that string with one argument while it builds the WHER…

  • High 7.5

    psqlODBC large-object read overflows the application buffer

    psqlODBC copies the reply to a large-object read (loread) into the application's buffer using the length sent by the server, without comparing it to the buffer size. A server not trusted under current SSL settings, or a man-in-the-middle, can return more byte…

  • High 7.5

    psqlODBC row cache overflow when a later FETCH changes the column count

    psqlODBC sizes its row cache from the column count of a cursor's first result, but recomputes the column count from each later FETCH reply without checking that it matches. A server not trusted under current SSL settings can answer a later FETCH with more col…

  • Medium 5.9

    psqlODBC SQLBindParameter heap memory corruption when binding more than 32767 parameters

    Integer wraparound in psqlODBC SQLBindParameter allows an application, or an attacker who controls how many parameters the application binds on one statement, to corrupt heap memory. psqlODBC stores the binding count in a signed 16-bit field. Binding paramete…