PT-2026-159577
CVE-2026-136515
·
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
The driver rewrites statement text for ODBC escapes and keyset-driven cursors using positions that may fall outside the text or refer to different statements. This occurs in several scenarios: when
SQLExecDirect() fails and applies positions to a subsequent shorter statement, when the parser records a FROM position with no following text leading to a negative copy length, or when {fn ...} escapes containing FOR UPDATE, ;, or INTO ... FROM cause the removal of a cursor prefix from an incorrect buffer. Additionally, {fn CONVERT(?, ...)} with an output parameter can produce a negative argument length, unclosed {fn ...} escapes can lead to out-of-bounds reads or stack exhaustion via nesting, and translating @@identity in long statements may read an uninitialized pointer. An attacker providing statement text for a dynamic or keyset-driven cursor with non-read-only concurrency, or using an output parameter, can cause heap corruption and application crashes.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 👾