CVE-2026-136505
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
- Low
- User action
- None
- Impact
- Full C/I/A compromise
- Weakness
- CWE-121, CWE-190, CWE-787
What an attacker gets
Authenticated 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.
Root cause
The driver fails to validate input sizes and counts, leading to multiple integer overflows and out-of-bounds memory access vulnerabilities.
Affected versions
psqlODBC versions up to and including 18.00.0006
CVSS v3.1 · CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Fix & remediation
Upgrade to psqlODBC version 18.00.0007 or later. There is no configuration-based mitigation; you must update the driver library.
$ sudo apt-get update && sudo apt-get install --only-upgrade psqlodbcAI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD description
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 32767 on an APD or IPD writes before the start of a heap buffer. - A numeric parameter with a negative scale overflows a stack buffer. - SQLGetData() of a text value of 2 GiB or more into a wide-character buffer computes a wrapped size and overflows the heap. - The 16-bit reference count and size of the statement parser's column-information cache wrap, which frees a cache entry still in use or overflows the cache, and a statement with more than 32768 columns overflows the parser's field array. - An updatable cursor that records more than 65535 changes in one transaction wraps the 16-bit capacity of its rollback log, which overflows it and frees it twice. - A statement with 32769 or more parameter markers overflows a 16-bit parameter count. - A wide-character string of more than 2 GiB wraps the size of its UTF-8 conversion, which is then written below the start of a heap buffer. - SQLGetDiagField() and SQLGetDiagFieldW() always stored the five-character SQLSTATE plus its terminator and checked BufferLength only afterwards, overrunning a buffer shorter than six bytes. - The ANSI SQLSetDescField(SQL_DESC_NAME) on an IPD ignored BufferLength and copied the name with strdup(), reading a name passed as pointer plus length past its end. - SQLFetchScroll(SQL_FETCH_BOOKMARK) did not check the bookmark it was given, so whoever chooses the bookmark value read out of bounds and crashed the process. - Four places in the parameter conversion read one byte past the end of a bound character parameter, and one of them rewrote it. - Binding a date, time or timestamp C value to an SQL_INTEGER or SQL_SMALLINT parameter dereferenced NULL instead of returning the conversion error. Depending on the case, the values come from the application, from the data or statement text an end user supplies, or from a database user who controls the size of a table or value. 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-1365097.5HighA malicious or compromised database server can corrupt memory or crash the application. This requires a connection that does not use sslmode=verify-full.
- 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.