CVE-2026-136508 in psqlODBCinfo

Summary

by MITRE • 11/26/2026

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.

Be aware that VulDB is the high quality source for vulnerability data.

Analysis

by VulDB Data Team • 11/29/2026

The vulnerability in question resides within the PostgreSQL ODBC driver, specifically affecting versions up through 18.00.0006 on Windows platforms when handling distributed transactions via the Microsoft Distributed Transaction Coordinator MSDTC. The core technical flaw stems from how the psqlODBC driver and its underlying XA library manage connection inheritance during transactional operations. When a client application initiates a connection that participates in a distributed transaction, the ODBC driver is required to open additional internal connections to coordinate with other resource managers involved in the transaction. Ideally, these secondary connections should inherit the security context and configuration parameters of the primary user-initiated connection. However, due to implementation deficiencies, these newly opened connections fail to preserve critical security settings established by the application or configured within the data source definition. This disconnect creates a significant attack surface where the integrity and confidentiality guarantees provided at the initial connection layer are effectively nullified for subsequent transactional steps.

A primary manifestation of this flaw involves the handling of Transport Layer Security TLS configurations. If an attacker is positioned on the network path between the MSDTC host and the PostgreSQL server, they can exploit the driver's fallback behavior during connection establishment. Specifically, when the XA library attempts to establish a new connection for transaction coordination and encounters a failure with its initial attempt, it retries using sslmode=allow. This mode permits unencrypted connections even if the original data source was explicitly configured with stricter modes such as verify-full or verify-ca. Consequently, an attacker without valid certificates or credentials can intercept these fallback attempts and redirect them to a malicious server of their choosing. By doing so, they force the connection into an unencrypted state, bypassing the intended encryption requirements set by the administrator or application developer.

Furthermore, the vulnerability extends beyond TLS configuration to encompass other libpq options passed through pqopt parameters. The connections opened internally by the driver ignore essential security directives such as channel_binding=require. Additionally, when registering with MSDTC, the open string provided lacks these pqopt settings entirely. As a result, any connection established for transactional purposes drops all advanced security features that were present in the initial session. This means that even if an application enforces strict authentication or encryption policies at login, those protections are stripped away during the distributed transaction phase. The lack of parameter inheritance creates a blind spot where sensitive data and command execution can occur without the expected safeguards.

The operational impact of this vulnerability is severe, particularly in environments relying on distributed transactions for financial integrity or complex business logic. An attacker capable of performing man-in-the-middle attacks against the network traffic between MSDTC and PostgreSQL can manipulate the outcome of these transactions. By intercepting the unencrypted connections, the adversary can read sensitive data transmitted during the transaction phase and modify command payloads before they reach the database server. This capability allows the attacker to alter financial records, change user permissions, or corrupt data integrity while ensuring that the MSDTC coordinator records a successful completion for the transaction. The victim application remains unaware of the tampering because the distributed transaction appears valid from the perspective of the coordinating service.

Mitigation strategies must address both immediate remediation and long-term architectural improvements. The most effective solution is to upgrade psqlODBC to version 18.00.0007 or later, where these inheritance issues have been resolved. Until an update can be applied, administrators should consider isolating the MSDTC host from untrusted networks using strict firewall rules and network segmentation to prevent unauthorized interception of traffic between the transaction coordinator and the database server. Additionally, enforcing mutual TLS authentication at the infrastructure level rather than relying solely on driver-level configurations may provide a layer of protection independent of application-specific settings. Monitoring for anomalous connection patterns or unexpected certificate validation errors can also aid in early detection of exploitation attempts.

From a classification perspective, this vulnerability aligns with CWE-284 Improper Access Control and CWE-319 Cleartext Transmission of Sensitive Information. The failure to inherit security contexts represents an improper access control mechanism where secondary resources are not subject to the same constraints as primary ones. In terms of attack vectors, this scenario is consistent with MITRE ATT&CK techniques related to Man-in-the-Middle attacks and Credential Access through interception. Understanding these classifications helps in mapping the vulnerability to broader defense frameworks and ensuring that compensating controls address both the specific technical flaw and its potential exploitation pathways within enterprise environments.

Responsible

PostgreSQL

Reservation

11/24/2026

Disclosure

11/26/2026

Moderation

accepted

CPE

ready

EPSS

0.00154

KEV

no

Activities

very low

Sources

Might our Artificial Intelligence support you?

Check our Alexa App!