Investigate in your agent.

Turn this advisory into a focused investigation. Ask your agent to check your project’s versions, explain the evidence, and suggest a compatible fix.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

Skip to content
Check your stack
CVE-2026-136515

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

Products / packages PostgreSQL psqlODBC

Published

Share

Severity and exploitation

Not in CISA KEV

KEV coverage does not rule out exploitation.

KEV checked 28/11/2026, 20:45:32 UTC
PostgreSQL · CVSS:3.1 · 7.5
Assessment vectorCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Severity

high7.5

CVSS measures technical severity, not the likelihood of an attack.

Known exploitation

Not listed in the checked CISA KEV catalog

Absence from CISA KEV does not rule out attacks.

Public exploit

Not established by this record

Missing evidence does not mean no public exploit exists.

Remediation

Fix status not established

No structured fix or guidance is available here. Check the latest publisher advisory.

What this means

psqlODBC versions up to 18.00.0006 are affected by memory corruption and crashes due to incorrect statement rewriting for cursors and escapes, potentially allowing heap corruption and application termination. An attacker with access to supply statement text can exploit this weakness. Code execution has not been demonstrated.

Summarized by @cf/meta/llama-3.3-70b-instruct-fp8-fast. Verify details against the original sources.

Attack conditions

No attack-condition excerpt has been identified here. Review the full source description and references for authentication, network access, and configuration requirements.

Review supporting sources →

Affected versions

Check the exact model, release, and any platform requirements against your installation.

PostgreSQL · PostgreSQL

psqlODBC

1 range

Compare with this publisher’s ranges. This does not inspect your installation.

affected

0 → through 18.00.0006

custom versions

unaffected

unknown

Other versions: unaffected

Automatic dependency matching is unavailable for this record. Use the product evidence and publisher’s instructions to check your installation.

What to do

Compare your installed product and version with the affected versions above. A matching product name alone does not confirm exposure.

No structured fix or remediation guidance is available here. Check the full source description and vendor’s latest advisory for a patch or workaround; do not assume another version is safe.

cve.new guidance unless attributed to a publisher. This page does not inspect your installation.

Public exploit evidence

No public exploit reference is identified in the imported evidence. This is not a claim that no exploit exists.

Original source description

Read the full publisher description

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.

References

2 sources

Inside the record

Evidence available

Package identity · not supplied
Version evidence
Remediation guidance · not supplied
Weakness classification
Additional publishers · not supplied

Describes the evidence in this view, not whether the product is safe.

Original records

CVE-2026-136515

View the latest unmodified CVE JSON from the official source. It may be newer than this imported page.

cve.new JSON →

Underlying weaknesses

The source’s classification of what caused the vulnerability.

CWE-787 ↗

CWE-787 Out-of-bounds Write

PostgreSQL

Related →
CWE-125 ↗

CWE-125 Out-of-bounds Read

PostgreSQL

Related →
CWE-674 ↗

CWE-674 Uncontrolled Recursion

PostgreSQL

Related →
Contributing organizations · 1
PostgreSQL

Assigning organization

2026-11-25

Timeline

All times UTC
  1. Advisory published

    Publication date supplied by the source.

  2. Last imported by cve.new

    Latest catalog import, not the date we first saw this advisory.

What changed

Follow changes
No substantive changes have been recorded here yet. History starts when cve.new observes a change after tracking is enabled; earlier edits are not reconstructed.

Large field values are marked as truncated previews. Original source snapshots remain retained.

Recent advisories affecting the same package or the same recorded vendor and product. These are separate vulnerabilities, not additional evidence for this advisory.

medium6.5
CVE-2026-136514

Another database user can crash applications by changing a table they own

psqlODBC assumed that a table it reads keeps the definition it had when the statement was described or parsed. A database user who owns a table or view another user's application reads can crash that application, with an honest server and default options, in these cases:

No structured fix or guidance is available here. Check the latest publisher advisory.

Exploitation not established

PostgreSQL · psqlODBC
low3.6
CVE-2026-136513

Another local user can redirect log files (incomplete fix for CVE-2026-120066)

When Debug or CommLog is enabled and the log directory cannot be used, psqlODBC falls back to a directory under the user's home directory. It wrote that path with an unexpanded ~, which is resolved relative to the process's current directory. Another local user who controls a directory on that path can make the driver create the victim's mylog_.log and psqlodbc_.log files in any directory the victim can write to, or leave the victim's process blocked in open().

No structured fix or guidance is available here. Check the latest publisher advisory.

Exploitation not established

PostgreSQL · psqlODBC
high7.5
CVE-2026-136512

Buffer overflows when a converted value does not fit the application's buffer

With SQL_C_DEFAULT, the C type of a bound column or parameter follows its SQL type. An application sizes its buffer from the type it was told when it described the statement. When the column had another type at fetch time, because the server reported another type, the table was altered, or an output parameter's result column had another type, psqlODBC wrote the larger type into the smaller buffer: 12 bytes past a 4-byte buffer for a uuid, and more in multi-row fetches, where the driver also steps through the array by the larger size.

No structured fix or guidance is available here. Check the latest publisher advisory.

Exploitation not established

PostgreSQL · psqlODBC
medium6.8
CVE-2026-136511

An SSLmode value written with capitals or braces connects without TLS

psqlODBC mapped an SSLmode value in a connection string that it did not recognise, such as SSLmode=Require, SSLmode=Verify-Full, SSLmode={require} or SSLmode={verify-full}, to disable. SQLDriverConnect() then returned SQL_SUCCESS with no diagnostic, and the connection was not encrypted.

No structured fix or guidance is available here. Check the latest publisher advisory.

Exploitation not established

PostgreSQL · psqlODBC
medium4.8
CVE-2026-136510

Statement after an abandoned parameter array sends the abandoned batch's rows instead of its own

A parameter-array execution that fails part-way leaves the rows it has already queued on the statement handle, and the next execution on that handle sends them. After a data-at-execution batch is abandoned, by SQLCancel or a rejected SQLPutData, the next SQLExecDirect sends the failed batch's rows and returns SQL_SUCCESS without sending its own statement.

No structured fix or guidance is available here. Check the latest publisher advisory.

Exploitation not established

PostgreSQL · psqlODBC
high7.5
CVE-2026-136509

Driver does not check that server replies match the queries it sent

psqlODBC did not check that a server reply matches the query it sent: that a FETCH returns no more rows than it asked for, that each row has the described number of columns, that one query produces one result, and that a COPY, a transaction or the connection ends where the protocol says. By sending replies that do not match, a hostile or compromised server, or anyone on the network path of a connection that does not use sslmode=verify-full (the default is disable) can corrupt memory in the application:

No structured fix or guidance is available here. Check the latest publisher advisory.

Exploitation not established

PostgreSQL · psqlODBC