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-136509

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

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:55:32 UTC
PostgreSQL · CVSS:3.1 · 7.5
Assessment vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:R/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

The psqlODBC driver, versions up to 18.00.0006, does not check if server replies match the queries it sent, allowing a hostile server or network attacker to corrupt memory. This can occur when the connection does not use sslmode=verify-full. The impact includes crashes and heap corruption.

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 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:

  • A FETCH reply with more rows than requested overflows the row cache.
  • Extra results in reply to a FETCH, or to the queries of a keyset-driven cursor, are freed while still in use.
  • A key query of a keyset-driven cursor answered with extra columns, or a re-read row with fewer columns, overflows the row cache.
  • Replies without columns or rows, or with NULL values, to the driver's internal queries at connect time and in catalog functions are dereferenced.
  • A malformed relacl value in SQLTablePrivileges() makes the driver write past a buffer.
  • On Windows with MSDTC, a long transaction name returned by the server overflows a buffer during recovery.
  • Values in replies to the driver's internal queries are used without checking their range: an empty column name, a parameter count, a large-object size, a function's or trigger's argument count, and a result of exactly 32767 columns. They are dereferenced, read past, returned to the application or sent back to the server as stack memory, or make the driver loop forever.
  • A reply that ends a COPY, the connection or the transaction at an unexpected point leaves freed results, keysets or table information in use: a CopyOutResponse followed by a lost connection, a ROLLBACK command tag under UseDeclareFetch=1, or a lost connection while a cursor with positioned updates is closed. Eight extra bytes in a reply also make the driver wait forever for a COPY to end.
  • On Windows, a start-up reply without client_encoding crashes the driver, and with MSDTC a failed connection makes the XA library use a connection it has already freed.
  • An error message ending in the first byte of a multibyte character leaves the SQLSTATE returned by SQLGetDiagRecW() unterminated.
  • When a string value did not fit the application's buffer, eight Unicode entry points filled the buffer and wrote no null terminator, so a caller that reads to the terminator, as ODBC allows, read past the end of its own buffer.

This continues the fixes for CVE-2026-120058 and CVE-2026-120060, which covered other replies. The demonstrated results are crashes and heap corruption; 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-136509

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-416 ↗

CWE-416 Use After Free

PostgreSQL

Related →
CWE-476 ↗

CWE-476 NULL Pointer Dereference

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