CVE Watchtower

CVE-2026-136512PostgreSQL psqlODBC Out-of-bounds Write

NVDCVSS scored by f86ef6dc-4d3a-42ad-8f28-e6d5547a5007

Vulnerability Summary

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.

Other conversions wrote past the application's buffer as well:

- With Int8As set to a smaller type, an int8 column fetched as SQL_C_DEFAULT was still written as 8 bytes.
- An int2vector column fetched as SQL_C_DEFAULT returned unterminated binary data instead of text.
- An output parameter that the application discards by binding a NULL buffer overflowed a stack buffer in the driver.
- SQLGetData() with BufferLength 0 on a column the driver reads as a large object wrote a NUL byte past the buffer.
- Adding a row with SQLBulkOperations(SQL_ADD) on a static updatable cursor before the first fetch, then changing that row, rolling back and fetching it, made the keyset index arithmetic free a pointer that was never allocated and corrupt the heap.

This can be triggered by 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), and by the owner of a table the application reads.

Versions up to and including psqlODBC 18.00.0006 are affected.
Severity Level
HIGH(7.5)
Published Date
Nov 25, 2026
Last Modified
Nov 25, 2026
Exploitation Status
No confirmed exploitation yet
Root Weakness (CWE)
The product writes data past the end, or before the beginning, of the intended buffer.
CVSS v3.1 Base Metrics — Score 7.5 (HIGH)
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

Affected & Patched Versions

Affected Versions
  • PostgreSQL psqlODBC <= 18.00.0006
Patched Versions
  • PostgreSQL psqlODBC 18.00.0006

What to do

Plan remediation soon. No exploitation is confirmed yet, but the severity is high.

  1. Check whether you run PostgreSQL psqlODBC and which version.
  2. Update to a patched version listed above, then confirm the new version.

Timeline

  • Nov 25, 2026Published
  • Nov 25, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new PostgreSQL psqlODBC CVEsYou are reading CVE-2026-136512. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Nov 26, 2026 00:37 UTC