Skip to content
OpenAdvisories
High WID-SEC-2026-4801 18 CVEs

PostgreSQL ODBC Driver: Mehrere Schwachstellen

Published Nov 25, 2026 · Updated Nov 25, 2026 · de

Summary

Ein Angreifer kann mehrere Schwachstellen in PostgreSQL ODBC Driver ausnutzen, um SQL-Injection durchzuführen, Sicherheitsmaßnahmen zu umgehen, vertrauliche Informationen offenzulegen, Daten zu manipulieren, Server-Spoofing-Angriffe zu starten, einen Denial-of-Service-Zustand zu verursachen oder möglicherweise beliebigen Code auszuführen.

Product

Der PostgreSQL ODBC Driver ermöglicht Anwendungen die Verbindung zu PostgreSQL-Datenbanken über die standardisierte ODBC-Schnittstelle.

Vulnerabilities 18

  • High 8.1

    SQL injection with BIG5 aliases and the JOHAB, EUC_TW, EUC_CN and EUC_KR client encodings

    To escape a bound parameter, or a name passed to a catalog function, psqlODBC has to know where each multibyte character of the client encoding ends. It treated a client encoding named by an alias the server accepts, such as WIN950, Windows950 or big-5 for BI…

  • High 8.1

    SQL injection and redirected writes because the driver reads SQL text differently from the server

    psqlODBC scans statement text itself to substitute parameters, translate ODBC escapes, join batched statements and rewrite queries for updatable cursors. Where it read the text differently from the server, text the driver took for data ran as SQL, or a positi…

  • High 8.1

    Connection string injection in SQLDriverConnect and the MSDTC XA open string

    psqlODBC parsed and built connection strings in ways that let a value end early: - In a braced value, such as PWD={…}, a trailing byte 0x7d of a GBK, Big5 or SJIS character was taken for the closing brace. - A braced value that ended right after an escaped }}…

  • High 7.5

    Use after free, double free and out-of-bounds writes in result and transaction clean-up

    psqlODBC frees memory that is still in use, frees it twice, or writes outside an application buffer in these cases: - The clean-up the driver runs at commit and rollback sends queries of its own, and the reply to one of them can start the clean-up again while…

  • High 7.5

    Unchecked sizes and counters overflow driver buffers

    psqlODBC uses sizes and counts without checking their range, or keeps them in types too small for them: - A row array size of 0, set with SQLSetStmtAttr() or on the ARD, makes SQLSetPos() with SQL_REFRESH write past the bound arrays. - SQL_DESC_COUNT above 32…

  • High 7.5

    SQL injection through names the driver puts into its own queries

    psqlODBC builds queries of its own from names, and put these names into them without escaping or qualification: - the database name in SQLForeignKeys(); - the current schema name in catalog functions; - the table name in the currtid2() call that re-reads rows…

  • High 7.5

    Buffer overflows when a converted value does not fit the application's buffer

    With SQL_C_DEFAULT, the C type of a bound column or parameter follows its SQL type. An application sizes its buffer from the type it was told when it described the statement. When the column had another type at fetch time, because the server reported another …

  • High 7.5

    Memory corruption and crashes when the driver rewrites statements for cursors and escapes

    psqlODBC rewrites statement text for keyset-driven cursors and ODBC escapes using positions it found in the text. These positions could lie outside the text or describe another statement: - After SQLExecDirect() failed on a statement handle, the FROM and WHER…

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

  • High 7.1

    Positioned writes go to another user's table through name and case matching

    To build positioned updates and to describe columns, psqlODBC matches the names in a statement against the catalog. Where it matched differently from the server, it used another table or column: - Table and schema names were compared case-insensitively in its…

  • Medium 6.8

    MSDTC connections drop the connection's TLS and channel binding settings

    On Windows, when a connection takes part in a distributed transaction, psqlODBC and its XA library open further connections of their own to finish the transaction. These connections did not keep the security settings of the application's connection: - When th…

  • Medium 6.8

    An SSLmode value written with capitals or braces connects without TLS

    psqlODBC mapped an SSLmode value in a connection string that it did not recognise, such as SSLmode=Require, SSLmode=Verify-Full, SSLmode={require} or SSLmode={verify-full}, to disable. SQLDriverConnect() then returned SQL_SUCCESS with no diagnostic, and the c…

  • Medium 6.5

    Another database user can crash applications by changing a table they own

    psqlODBC assumed that a table it reads keeps the definition it had when the statement was described or parsed. A database user who owns a table or view another user's application reads can crash that application, with an honest server and default options, in …

  • Medium 5.9

    Driver sends application memory to the server or returns it to the caller

    psqlODBC read memory it had not written, or memory past the end of an application buffer, and sent it to the server or returned it to the application: - Text bound as SQL_C_CHAR to a large-object parameter was read past the end of the application's buffer, an…

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

  • Medium 5.0

    Debug log records the database password in clear text

    With the driver's debug log (MyLog) turned on, two paths write the database password to the log in clear text, both beside a line where the driver's own redaction masks it as PWD=xxxxx: - Pressing "Test" in the Windows data source setup dialog (psqlsetup.dll)…

  • Medium 4.8

    Statement after an abandoned parameter array sends the abandoned batch's rows instead of its own

    A parameter-array execution that fails part-way leaves the rows it has already queued on the statement handle, and the next execution on that handle sends them. After a data-at-execution batch is abandoned, by SQLCancel or a rejected SQLPutData, the next SQLE…

  • Low 3.6

    Another local user can redirect log files (incomplete fix for CVE-2026-120066)

    When Debug or CommLog is enabled and the log directory cannot be used, psqlODBC falls back to a directory under the user's home directory. It wrote that path with an unexpanded ~, which is resolved relative to the process's current directory. Another local us…

Revision history

  1. #1

    Initiale Fassung

References