CVE-2026-136509
7.5HighPublished Nov 25, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite
High
0CVSS v3.110
- Attack vector
- Network
- Complexity
- High
- Privileges
- None
- User action
- Required
- Impact
- Full C/I/A compromise
- Weakness
- CWE-416, CWE-476, CWE-787
What an attacker gets
A malicious or compromised database server can corrupt memory or crash the application. This requires a connection that does not use sslmode=verify-full.
Root cause
The driver fails to validate that server responses match the expected structure, leading to buffer overflows, use-after-free, and null pointer dereferences.
Affected versions
psqlODBC up to and including 18.00.0006
CVSS v3.1 · CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Fix & remediation
Upgrade to psqlODBC version 18.00.0007 or later. Immediately configure all database connections to use sslmode=verify-full to prevent man-in-the-middle attacks.
AI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD description
psqlODBC did not check that a server reply matches the query it sent: that a FETCH returns no more rows than it asked for, that each row has the described number of columns, that one query produces one result, and that a COPY, a transaction or the connection ends where the protocol says. By sending replies that do not match, a hostile or compromised server, or anyone on the network path of a connection that does not use sslmode=verify-full (the default is disable) can corrupt memory in the application: - A FETCH reply with more rows than requested overflows the row cache. - Extra results in reply to a FETCH, or to the queries of a keyset-driven cursor, are freed while still in use. - A key query of a keyset-driven cursor answered with extra columns, or a re-read row with fewer columns, overflows the row cache. - Replies without columns or rows, or with NULL values, to the driver's internal queries at connect time and in catalog functions are dereferenced. - A malformed relacl value in SQLTablePrivileges() makes the driver write past a buffer. - On Windows with MSDTC, a long transaction name returned by the server overflows a buffer during recovery. - Values in replies to the driver's internal queries are used without checking their range: an empty column name, a parameter count, a large-object size, a function's or trigger's argument count, and a result of exactly 32767 columns. They are dereferenced, read past, returned to the application or sent back to the server as stack memory, or make the driver loop forever. - A reply that ends a COPY, the connection or the transaction at an unexpected point leaves freed results, keysets or table information in use: a CopyOutResponse followed by a lost connection, a ROLLBACK command tag under UseDeclareFetch=1, or a lost connection while a cursor with positioned updates is closed. Eight extra bytes in a reply also make the driver wait forever for a COPY to end. - On Windows, a start-up reply without client_encoding crashes the driver, and with MSDTC a failed connection makes the XA library use a connection it has already freed. - An error message ending in the first byte of a multibyte character leaves the SQLSTATE returned by SQLGetDiagRecW() unterminated. - When a string value did not fit the application's buffer, eight Unicode entry points filled the buffer and wrote no null terminator, so a caller that reads to the terminator, as ODBC allows, read past the end of its own buffer. This continues the fixes for CVE-2026-120058 and CVE-2026-120060, which covered other replies. The demonstrated results are crashes and heap corruption; code execution has not been demonstrated. Versions up to and including psqlODBC 18.00.0006 are affected.
References
Related Critical / High CVEs
More fully triaged vulnerabilities you may want to check next.
- CVE-2026-1365127.5HighA malicious database server or network attacker can trigger memory corruption, leading to arbitrary code execution. This occurs when the driver writes data beyond the allocated buffer size during fetch operations.
- CVE-2026-1365157.5HighAuthenticated attackers can corrupt the application heap and cause crashes by supplying malicious SQL statements to keyset-driven or dynamic cursors. While code execution is not confirmed, the memory corruption could potentially be leveraged for further exploitation.
- CVE-2026-1365017.1HighAuthenticated attackers can redirect positioned database operations to arbitrary tables or trigger buffer overflows. This allows them to execute code or manipulate data under the victim's database role.
- CVE-2026-1365028.1HighRemote attackers can execute arbitrary SQL commands with the application's database privileges. This requires the attacker to control input used in SQL statements or parameter values.
- CVE-2026-1365037.5HighA malicious database server or network attacker can trigger memory corruption or crashes in applications using the psqlODBC driver. This requires the application to connect to a compromised server or have an attacker on the network path.
- CVE-2026-1365057.5HighAuthenticated attackers can trigger heap corruption or memory errors, potentially leading to crashes or arbitrary code execution. This requires an application using the driver to process malicious input or database results.