Skip to main content

psqlODBC CVE-2026-136508

MEDIUM
Selection of Less-Secure Algorithm During Negotiation ('Algorithm Downgrade') (CWE-757)
2026-11-25 PostgreSQL
6.8
CVSS 3.1 · Vendor: PostgreSQL
View

Attack ChainAIDerived

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

  1. Access
    Gain MITM position between MSDTC host and PostgreSQL
  2. Delivery
    Application initiates distributed XA transaction
  3. Exploit
    Driver opens connection dropping sslmode/pqopt enforcement
  4. Execution
    Redirect connection to attacker-controlled server without TLS
  5. Impact
    Read, 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% 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 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

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

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.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/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
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

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

EPSS Score
0.2%
Top 98% exploitable
Prevalence
Medium
official PostgreSQL ODBC driver, common on Windows, but XA/MSDTC distributed-transaction use is a narrower subset
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

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.2%
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

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
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