Skip to content

psqlODBC

Memory corruption and crashes when the driver rewrites statements for cursors and escapes

CVE-2026-136515Published 25 Nov 2026, 22:25 UTC

Real-world risk

2.3/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

7.5

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from PostgreSQL)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
psqlODBCCommon<= 18.00.0006—

What to do

Check the vendor advisory in the references below for fixed versions and workarounds.

Why this score

FactorValueEvidence×
ImpactFull compromiseCode execution or full control of the system or applicationFrom the CVSS vector1.00
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededLowA real low-privileged accountFrom the CVSS vector0.60
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityHardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bugFrom the CVSS vector0.45

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.5% chance of exploitation in 30 days (percentile 46), as of 2026-12-02.

The arithmetic
  1. Prerequisites multiplied together0.270
  2. Threat T1: Nothing known0.850
  3. 10 × impact 1 × prerequisites 0.27 × threat 0.852.295
  4. Rounded to one decimal between 0.1 and 102.3

How the score works

Exploitation and evidence timeline

  1. 25 Nov 2026 Published
  2. 2 Dec 2026 Risk 2.3 (cvss fallback)

Weakness

CWE-125, CWE-674, CWE-787

References

Get alerts for psqlODBC

Free email or text alerts when a vulnerability in psqlODBC reaches risk 8 or higher. Nothing else.