PT-2026-159567
CVE-2026-136505
·
Published
2026-11-25
·
Updated
2026-11-25
Description by
CVSS 3.1
7.5
HighMetricsAV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions
psqlODBC versions prior to 18.00.0007
Description
psqlODBC fails to properly validate sizes and counts or uses data types that are too small, leading to several memory safety issues. These include writing past bound arrays when a row array size of 0 is set via
SQLSetStmtAttr(), writing before a heap buffer when SQL DESC COUNT exceeds 32767 on an APD or IPD, and stack buffer overflows caused by numeric parameters with negative scales. Additionally, SQLGetData() can overflow the heap when processing text values of 2 GiB or more into wide-character buffers. The statement parser's column-information cache and field array can overflow or free entries still in use when handling more than 32768 columns. Updatable cursors recording over 65535 changes in one transaction can overflow and double-free the rollback log. Statements with 32769 or more parameter markers can overflow a 16-bit parameter count, and wide-character strings exceeding 2 GiB can cause heap buffer underwrites during UTF-8 conversion. The functions SQLGetDiagField() and SQLGetDiagFieldW() may overrun buffers shorter than six bytes. The ANSI SQLSetDescField(SQL DESC NAME) on an IPD may read past the end of a name by ignoring BufferLength. SQLFetchScroll(SQL FETCH BOOKMARK) can cause out-of-bounds reads and process crashes due to lack of bookmark validation. Furthermore, parameter conversions may read one byte past the end of bound character parameters, and binding date, time, or timestamp C values to SQL INTEGER or SQL SMALLINT parameters can lead to NULL dereferences. These issues can result in crashes and heap corruption.Recommendations
Update psqlODBC to a version newer than 18.00.0006.
Found an issue in the description? Have something to add? Feel free to write us 👾