Skip to main content

psqlODBC CVE-2026-136499

MEDIUM
Use of Uninitialized Resource (CWE-908)
2026-11-25 PostgreSQL
5.9
CVSS 3.1 · Vendor: PostgreSQL
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Connect as hostile server or supply crafted parameter/value
  2. Exploit
    Trigger uninitialized or out-of-bounds read in driver
  3. Execution
    Driver sends client process memory to server or stores it in row
  4. Impact
    Exfiltrate leaked credentials or other users' data

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Variable initialization
Exploitation Conditions

Exploitation is split across seven distinct, condition-specific paths rather than a single default-config remote attack: (1) text bound as SQL_C_CHAR to a large-object parameter with a buffer shorter than the data; (2) positioned updates/inserts after a fetch truncated a long bytea or large-object value; (3) hex text containing a NUL byte bound to a binary parameter with an explicit length; (4) requires the RowVersioning=1 setting plus SQLColumns() on a non-existent table; (5) requires UseDeclareFetch=1 with updatable block cursors and a malformed ctid from the server; (6) requires UseServerSidePrepare=0 with SQLNumResultCols()/SQLDescribeCol()/SQLColAttribute() called before SQLExecute(); (7) heap addresses leaked via server-object naming to anyone reading an unencrypted connection. Limiting factors: several variants depend on non-default configuration flags (RowVersioning=1, UseDeclareFetch=1, UseServerSidePrepare=0), a malicious or compromised PostgreSQL server, or specific application binding/API-sequencing behavior, and the address-disclosure path additionally requires an unencrypted (non-TLS) connection to be observed. All variants are confined to information disclosure (C:H, I:N, A:N) and affect psqlODBC versions up to and including 18.00.0006.

Impact

This is a genuine but moderate-priority information-disclosure issue, not a high-urgency emergency. The vendor CVSS of 5.9 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N) reflects a network vector with no privileges or user interaction but HIGH attack complexity, HIGH confidentiality impact, and zero integrity or availability impact - consistent with CWE-908 (use of uninitialized/unwritten memory) leaking process memory that may contain other users' data or credentials. The vuln.today decision label is 'this_month' (not act_now/emergency), aligning with the moderate score. No EPSS score was provided, so exploitation probability cannot be quantified. KEV is not listed, so there is no evidence of active exploitation, and no public exploit or PoC reference was supplied beyond the GitHub security advisory - exploitation status is therefore 'no public exploit identified at time of analysis.' The AC:H and PR:N combination is defensible but nuanced: several of the seven distinct leak paths require specific non-default driver configuration (RowVersioning=1, UseDeclareFetch=1, UseServerSidePrepare=0) or a hostile/malicious PostgreSQL server rather than a truly unauthenticated remote attacker, which is why complexity is HIGH. One signal to verify: PR:N treats the trigger as unauthenticated, but the realistic threat actors named by the vendor are an end user supplying a parameter, a database user storing a long value, or a hostile server - each implies some level of access or a trust relationship, so PR:N may overstate exposure for several variants. Net: a real defect worth patching on a normal cycle, not a drop-everything priority absent EPSS/KEV signals.

Exploit ScenarioDerived

A malicious or compromised PostgreSQL server (or a database user able to store crafted values) interacts with an application using psqlODBC under certain configurations or binding patterns, causing the driver to read memory it never initialized or bytes past the end of the application's bound buffer and transmit that memory to the server or back into stored rows. The leaked bytes may contain data belonging to other users or credentials from the client process's heap/stack. No public exploit code or PoC is identified; the issue is documented only in the vendor's GitHub security advisory (GHSA-2mrr-c82q-wc22), and high attack complexity reflects the specific conditions each of the seven variants requires.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 25, 2026

psqlODBC, the PostgreSQL ODBC driver, can disclose uninitialized heap or stack memory and application buffer contents in versions up to and including 18.00.0006, through seven distinct code paths rather than one single default-configuration attack. Depending on the path, an end user supplying a parameter value, a database user who has stored a long bytea or large-object value, or a hostile/compromised PostgreSQL server can obtain memory from the client application process, which may contain other users' data or credentials; remote attackers are the relevant threat per the CVSS vector (AV:N/PR:N), with high confidentiality impact and no integrity or availability effect. Several variants depend on non-default settings (RowVersioning=1, UseDeclareFetch=1, UseServerSidePrepare=0), specific application binding or ODBC API sequencing, or observation of an unencrypted connection; no public exploit code and no active exploitation were identified at time of analysis, and the issue is assessed as a genuine but moderate-priority information-disclosure problem rather than a high-urgency emergency.

RemediationAI

Upgrade psqlODBC past the affected range described in the vendor advisory GHSA-2mrr-c82q-wc22 (https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-2mrr-c82q-wc22), consulting the changelog at https://odbc.postgresql.org/changelog/ for the release that carries the fixes; the supplied data identifies affected versions only up to and including 18.00.0006 and does not name an exact fixed version, so treat patch availability as per the vendor advisory rather than as a confirmed version number. Where upgrading cannot be done immediately, the evidence-supported exposure reducers are: use TLS for all connections, since the heap-address disclosure path (server-side object names built from client heap addresses) is only observable to a third party on an unencrypted connection; and avoid the non-default settings that gate three of the variants, i.e. do not run with RowVersioning=1, UseDeclareFetch=1 or UseServerSidePrepare=0 unless required, noting that changing UseServerSidePrepare alters statement-preparation behaviour and may affect performance, and that RowVersioning/UseDeclareFetch changes can affect cursor behaviour in existing applications. Applications bound to hostile or untrusted PostgreSQL servers should also be treated as exposed regardless of client-side settings, since several variants require only a malformed server response such as a bad ctid. Updating the driver is the complete fix; the settings-based steps only narrow which paths are reachable.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause class is CWE-908 (use of uninitialized resource): the driver reads memory it never wrote, or reads past the end of a caller-supplied buffer, and then either sends that data to the PostgreSQL server or returns it to the application. Concretely, text bound as SQL_C_CHAR to a large-object parameter is read beyond the application's buffer and the surplus bytes are stored in the large object; after a fetch truncates a long bytea or large-object value, positioned updates and inserts read past the bound buffer and write that memory into the row; hex text containing a NUL byte, bound to a binary parameter with an explicit length, transmits uninitialized heap memory as the parameter value; with RowVersioning=1, SQLColumns() against a non-existent table returns uninitialized stack memory as schema and table names; with UseDeclareFetch=1, bookmarks of updatable block cursors contain uninitialized heap memory, and a malformed ctid from the server causes stale heap bytes to be sent in positioned updates and deletes; with UseServerSidePrepare=0, calling SQLNumResultCols(), SQLDescribeCol() or SQLColAttribute() on a prepared statement before SQLExecute() reads the application's bound parameter buffers and sends their current contents to the server as literals even though ODBC permits the application to fill those buffers after the describe. Separately, the driver names the prepared statements, savepoints, cursors and keyset plans it creates on the server after the heap addresses of its own objects, so the server itself, or anyone reading an unencrypted connection, learns exact heap addresses inside the client process. The affected CPE is cpe:2.3:a:postgresql:psqlodbc, covering all versions through 18.00.0006; the trigger conditions for each of the seven paths are those enumerated in the vendor advisory and changelog rather than a single shared code path.

Know when Psqlodbc gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (PostgreSQL) PRIMARY 5.9 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 5.9 MEDIUM

Network-reachable disclosure of process memory with no integrity/availability impact (C:H,I:N,A:N); AC:H because most variants need specific non-default configs, a hostile server, or particular binding/API sequences; PR:N as an end user supplying input can trigger several paths.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (PostgreSQL).

CVSS VectorVendor: PostgreSQL

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

DescriptionCVE.org

psqlODBC read memory it had not written, or memory past the end of an application buffer, and sent it to the server or returned it to the application:

  • Text bound as SQL_C_CHAR to a large-object parameter was read past the end of the application's buffer, and the extra bytes were stored in the large object.
  • After a fetch truncated a long bytea or large-object value, positioned updates and inserts read past the bound buffer and wrote that memory into the row.
  • Hex text with a NUL byte, bound to a binary parameter with an explicit length, sent uninitialised heap memory as the parameter value.
  • With RowVersioning=1, SQLColumns() on a table that does not exist returned uninitialised stack memory as the schema and table names.
  • With UseDeclareFetch=1, bookmarks of updatable block cursors contained uninitialised heap memory, and a malformed ctid from the server sent stale heap bytes in positioned updates and deletes.
  • With UseServerSidePrepare=0, calling SQLNumResultCols(), SQLDescribeCol() or SQLColAttribute() on a prepared statement before SQLExecute() read the application's bound parameter buffers and sent their current contents to the server as literals, although ODBC lets the application fill those buffers after the describe.
  • The driver named the prepared statements, savepoints, cursors and keyset plans it creates on the server after the heap addresses of its own objects, so the server, or anyone reading an unencrypted connection, learned exact heap addresses inside the client.

Depending on the case, an end user who supplies a parameter value, a database user who stores a long value in a row, or a hostile server can obtain memory of the application process, which may hold data of other users or credentials.

Versions up to and including psqlODBC 18.00.0006 are affected.

Threat Intelligence Overview

EPSS Score
0.5%
Top 64% exploitable
Prevalence
Medium
official PostgreSQL ODBC driver, common in Windows/enterprise apps but narrower than Postgres itself
Social Media
1
Sightings
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)CVE.org

cpe:2.3:a:postgresql:psqlodbc:*:*:*:*:*:*:*:*
CVE-2026-136507 HIGH
8.1 Nov 25

psqlODBC through 18.00.0006 parses and rebuilds connection strings in several ways that let an attacker-influenced value

CVE-2026-136502 HIGH
8.1 Nov 25

SQL injection in psqlODBC up to and including 18.00.0006 lets remote unauthenticated attackers run SQL with the applicat

CVE-2026-136500 HIGH
8.1 Nov 25

SQL injection in psqlODBC through 18.00.0006 lets an attacker who controls a bound character parameter or a name passed

CVE-2026-136515 HIGH
7.5 Nov 25

Heap corruption in psqlODBC through 18.00.0006 can crash an application or corrupt its memory when it processes attacker

CVE-2026-136505 HIGH
7.5 Nov 25

Extreme sizes and counts handled without range checks in psqlODBC's driver core let 16-bit counters and 2 GiB-scale size

CVE-2026-136509 HIGH
7.5 Nov 25

Heap corruption and driver crashes in psqlODBC (all versions up to and including 18.00.0006) stem from the driver not ve

CVE-2026-136506 HIGH
7.5 Nov 25

SQL injection in psqlODBC through crafted database, schema, table, column, operator, cursor, or parameter identifiers ca

CVE-2026-136512 HIGH
7.5 Nov 25

A client-side memory-corruption flaw in the PostgreSQL ODBC driver (psqlODBC) through 18.00.0006 causes the driver to wr

CVE-2026-136503 HIGH
7.5 Nov 25

Memory-safety defects across several code paths in psqlODBC, the PostgreSQL ODBC driver, allow a hostile or compromised

CVE-2026-120064 HIGH
7.5 Nov 02

Out-of-bounds reads and writes in psqlODBC before 18.00.0006 arise when a host application forwards untrusted column num

CVE-2026-120062 HIGH
7.5 Nov 02

SQL injection in psqlODBC before 18.00.0006 allows an attacker who can influence a table or schema name passed by a host

CVE-2026-120061 HIGH
7.5 Nov 02

A stack-based buffer overflow (CWE-121) in the psqlODBC driver, the official PostgreSQL ODBC driver, lets attacker-influ

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy