Code executionin PostgreSQL psqlODBC.
No public exploit found; not on exploited lists.
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.
- No source names a fix yet. Watch this page or the product for updates; we never guess a fixed version.
Not confirmed by any source yet: fixed version not confirmed. We show these as not confirmed instead of guessing.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 24 Nov 2026CVE ID reserved by PostgreSQL.
- 25 Nov 2026Published in the CVE List.
- 2 Dec 2026CVE record last updated.
Attack code anyone can find
Exploit maturity: No public exploit found. CISA assessment (SSVC): exploitation none.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Other psqlODBC vulnerabilities
Same weakness: Out-of-bounds write
- github.com vendor-advisory
- odbc.postgresql.org release-notes
Patchminder. CVE-2026-136515: Code execution in PostgreSQL psqlODBC. https://patchminder.com/cve/cve-2026-136515/ (accessed 5 December 2026).