CVE-2026-136515
Published:November 25, 2026
Updated:November 28, 2026
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 WHERE positions of the failed statement were applied to the next, shorter statement on that handle.
- The parser could record a FROM position with no text after it, and the rewrite then copied a negative length.
- An {fn ā¦} escape whose arguments contain FOR UPDATE, ; or INTO ⦠FROM made the driver remove a cursor prefix from the wrong buffer.
- {fn CONVERT(?, ā¦)} with an output parameter produced a negative argument length.
- An unclosed {fn ā¦} escape made the driver read past the statement, and a few thousand nested ones exhausted the stack.
- Translating @@identity in long statement text read an uninitialised pointer, and {? = call ā¦} with nothing bound for the return value dereferenced NULL.
Whoever supplies the text of a statement that an application opens on a keyset-driven or dynamic cursor with a concurrency other than read-only, or calls with an output parameter, can corrupt the application's heap and end it. That includes the users of query tools, report builders and other applications that run SQL their users type. Code execution has not been demonstrated.
Versions up to and including psqlODBC 18.00.0006 are affected.
Affected Packages
https://github.com/postgresql-interfaces/psqlodbc.git (GITHUB):
Affected version(s) >=REL-07_02_0003 <REL-18_00_0007 || >=REL-08_00_0001 <REL-18_00_0007 || >=REL-09_00_0100 <REL-18_00_0007 || >=REL-10_00_0000 <REL-18_00_0007 || >=REL-11_00_0000 <REL-18_00_0007 || >=REL-12_00_0000 <REL-18_00_0007 || >=REL-13_00_0000 <REL-18_00_0007 || =REL-15_00_0000 <REL-18_00_0007 || >=REL-16_00_0000 <REL-18_00_0007 || >=REL-17_00_0000 <REL-18_00_0007 || >=REL-18_00_0000 <REL-18_00_0007Fix Suggestion:
Update to version REL-18_00_0007Related ResourcesĀ (5)
Do you need more information?
Contact UsCVSS v4
Base Score:
7.7
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
EPSS
Base Score:
0.53