psqlODBC
CVE-2026-136508
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain MITM position between MSDTC host and PostgreSQL
-
DeliveryApplication initiates distributed XA transaction
-
ExploitDriver opens connection dropping sslmode/pqopt enforcement
-
ExecutionRedirect connection to attacker-controlled server without TLS
-
ImpactRead, alter traffic and dictate transaction outcome
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Algorithm negotiation safety
|
| Exploitation Conditions | Exploitation requires a specific Windows deployment of psqlODBC where a connection participates in a distributed (XA) transaction coordinated by MSDTC - the XA library and driver then open their own connections that fail to inherit the application's security settings. The attacker must occupy a man-in-the-middle position on the network path between the MSDTC host and the PostgreSQL server; no certificate or credentials are needed (PR:N). The flaw specifically defeats data sources hardened with sslmode=verify-full or verify-ca (the XA library retries with sslmode=allow on first failure) and channel_binding=require (passed via pqopt, which the driver-opened and MSDTC-registered connections ignore). Limiting factors that reduce real-world exposure: Windows-only, requires distributed transactions to actually be in use, requires the privileged network-path position (reflected in AC:H), and the application must trigger the transaction (UI:R). Non-distributed, non-Windows, or non-MITM scenarios are not affected. |
| Impact | This is a medium-severity (CVSS 6.8) TLS/security-setting downgrade flaw (CWE-757) rather than a code-execution bug, and the real-world signals point to conditional, not opportunistic, risk. The CVSS vector AV:N/AC:H/PR:N/UI:R shows a network, unauthenticated attack (PR:N) but one gated by high complexity (AC:H) and required interaction (UI:R): the attacker must hold a man-in-the-middle position on the network path between the MSDTC host and the PostgreSQL server, AND the application must actually initiate a distributed (XA) transaction on Windows. C:H/I:H/A:N matches the described outcome - the attacker can read and alter traffic and decide the transaction result, but there is no availability impact. No EPSS score, no CISA KEV listing, and no public exploit were provided; the only references are the vendor GHSA advisory and the project changelog. The vuln.today decision label is 'this_month' (not act_now/emergency), consistent with a serious but non-urgent, position-dependent issue. Net: a genuine security-control bypass worth patching on a normal cycle, not a high-CVSS-but-hollow finding, but also not evidence of widespread or automatable exploitation - the MITM precondition keeps it in the targeted-attack category. |
| Exploit ScenarioDerived | No public exploit identified at time of analysis. An attacker already positioned on the network path between a Windows MSDTC host and the PostgreSQL server waits for the application to run a distributed transaction; psqlODBC's XA library then opens its own connections that ignore the configured sslmode=verify-full/verify-ca and channel_binding=require, and on first failure retries with sslmode=allow. Because these connections carry no TLS or certificate enforcement, the attacker redirects them to a server of their choosing, reads and modifies the data, and controls the outcome MSDTC records - all without any certificate or credentials. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 25, 2026
psqlODBC on Windows fails to carry the application's TLS and connection-security settings onto the extra connections that it and its XA library open to complete a distributed (MSDTC-coordinated) transaction, so an on-path attacker without a certificate or credentials can steer those connections to a server of their choosing without TLS, read and alter the traffic, and determine the outcome MSDTC records. All versions up to and including 18.00.0006 are affected, but exploitation is conditional rather than opportunistic: it requires a Windows deployment where distributed transactions are actually in use, the application must trigger the transaction (UI:R), and the attacker must hold a man-in-the-middle position between the MSDTC host and the PostgreSQL server (reflected in AC:H). No public exploit has been identified at time of analysis, and because this is a security-setting downgrade (CWE-757) rather than a memory-safety or code-execution bug, the realistic impact is disclosure and tampering of XA transaction traffic against data sources that were hardened with sslmode=verify-full, verify-ca, or channel_binding=require.
RemediationAI
Upgrade psqlODBC past 18.00.0006 to the fixed release named in the vendor advisory GHSA-8q3q-86gx-g68g, and confirm the version against the changelog at https://odbc.postgresql.org/changelog/ since an exact fixed version number is not stated in the data available here. Because the defect only manifests when the driver and its XA library open their own connections for an MSDTC-coordinated distributed transaction, an interim option for environments that cannot patch is to stop enlisting psqlODBC connections in distributed transactions on Windows, at the cost of losing cross-resource atomic commit for those workloads. The other lever follows directly from the assessed prerequisites: the attacker must occupy the network path between the MSDTC host and the PostgreSQL server, so segmenting that path, restricting which hosts may reach the PostgreSQL listener from MSDTC participants, and keeping MSDTC and PostgreSQL on a tightly scoped network reduces exposure, though it constrains legitimate distributed-transaction topologies and must be re-validated whenever that topology changes. Note that continuing to configure sslmode=verify-full, verify-ca or channel_binding=require is not itself a mitigation for this issue, because those are exactly the settings the internally opened connections discard.
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
psqlODBC is the PostgreSQL ODBC driver, built on libpq, and on Windows it can enlist a connection in a distributed transaction coordinated by Microsoft's Distributed Transaction Coordinator (MSDTC) through an XA library that implements two-phase commit. To finish such a transaction, the XA library and the driver open their own additional connections to PostgreSQL instead of reusing the application's connection, and those connections do not inherit the application's security configuration. Two distinct gaps are described: when the XA library's first connection attempt fails it retries with sslmode=allow, which silently downgrades a data source configured for sslmode=verify-full or verify-ca; and the connections the driver opens itself ignore libpq options supplied through pqopt, including channel_binding=require, while the open string the driver registers with MSDTC contains no pqopt so the XA library's connections drop those options as well. The applicable weakness class is CWE-757, selection of a less-secure algorithm or setting during negotiation: the negotiation succeeds, but with weaker security properties than the operator configured, which is precisely the condition an on-path attacker needs. The CPE cpe:2.3:a:postgresql:psqlodbc:*:*:*:*:*:*:*:* is an unbounded wildcard, consistent with the vendor statement that every release through 18.00.0006 is affected. Deployment scope matters for triage: Linux/Unix psqlODBC, connections that never participate in a distributed transaction, and environments where the attacker cannot reach the MSDTC-to-PostgreSQL path are outside the exploited configuration.
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
AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
Network reachable and unauthenticated (AV:N/PR:N), but AC:H for the required MITM path position and UI:R because the app must initiate a distributed transaction; traffic read and alteration give C:H/I:H, no A impact.
Primary rating from Vendor (PostgreSQL).
CVSS VectorVendor: PostgreSQL
DescriptionCVE.org
On Windows, when a connection takes part in a distributed transaction, psqlODBC and its XA library open further connections of their own to finish the transaction. These connections did not keep the security settings of the application's connection:
- When the XA library's first connection attempt failed, it tried again with sslmode=allow, even for a data source configured with sslmode=verify-full or verify-ca.
- The connections the driver opens itself ignored every libpq option given through pqopt, such as channel_binding=require, and the open string it registers with MSDTC carried no pqopt, so the XA library's connections dropped those options too.
An attacker on the network path between the MSDTC host and the PostgreSQL server, without a certificate or credentials, can make those connections go to a server of their choosing without TLS, read and change what they send, and decide the outcome MSDTC records for the transaction.
Versions up to and including psqlODBC 18.00.0006 are affected.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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
psqlODBC through 18.00.0006 parses and rebuilds connection strings in several ways that let an attacker-influenced value
SQL injection in psqlODBC up to and including 18.00.0006 lets remote unauthenticated attackers run SQL with the applicat
SQL injection in psqlODBC through 18.00.0006 lets an attacker who controls a bound character parameter or a name passed
Heap corruption in psqlODBC through 18.00.0006 can crash an application or corrupt its memory when it processes attacker
Extreme sizes and counts handled without range checks in psqlODBC's driver core let 16-bit counters and 2 GiB-scale size
Heap corruption and driver crashes in psqlODBC (all versions up to and including 18.00.0006) stem from the driver not ve
SQL injection in psqlODBC through crafted database, schema, table, column, operator, cursor, or parameter identifiers ca
A client-side memory-corruption flaw in the PostgreSQL ODBC driver (psqlODBC) through 18.00.0006 causes the driver to wr
Memory-safety defects across several code paths in psqlODBC, the PostgreSQL ODBC driver, allow a hostile or compromised
Out-of-bounds reads and writes in psqlODBC before 18.00.0006 arise when a host application forwards untrusted column num
SQL injection in psqlODBC before 18.00.0006 allows an attacker who can influence a table or schema name passed by a host
A stack-based buffer overflow (CWE-121) in the psqlODBC driver, the official PostgreSQL ODBC driver, lets attacker-influ
NVD
CVE.org
EPSS
GitHub
Exploit-DB