CVE-2026-138406
Published:November 29, 2026
Updated:December 01, 2026
psqlODBC uses pgenlist.dll, which is installed with the driver, for MSDTC enlistment. It loads the DLL the first time an application enlists. On builds made with Visual C++ 14 or later, it loaded the DLL by name, not by its path. Windows then searched the application's directory, the current directory and the directories on PATH, and none of them is where the driver installs pgenlist.dll.
So another local user who could write to one of those directories could put their own pgenlist.dll there. The next time the application enlisted in MSDTC, that DLL's code ran in the application, under the application's account. On a server, that account can have more privileges than the attacker's own.
An application that never sets SQL_ATTR_ENLIST_IN_DTC does not load pgenlist.dll and is unaffected. Only the Windows builds of the driver use pgenlist.dll.
Versions up to and including psqlODBC 18.00.0007 are affected.
Affected Packages
https://github.com/postgresql-interfaces/psqlodbc.git (GITHUB):
Affected version(s) >=REL-09_06_0100 <REL-18_00_0008 || >=REL-10_00_0000 <REL-18_00_0008 || >=REL-11_00_0000 <REL-18_00_0008 || >=REL-12_00_0000 <REL-18_00_0008 || >=REL-13_00_0000 <REL-18_00_0008 || =REL-15_00_0000 <REL-18_00_0008 || >=REL-16_00_0000 <REL-18_00_0008 || >=REL-17_00_0000 <REL-18_00_0008 || >=REL-18_00_0000 <REL-18_00_0008Fix Suggestion:
Update to version REL-18_00_0008Related Resources (5)
Do you need more information?
Contact UsCVSS v4
Base Score:
7
Attack Vector
LOCAL
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.3
Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Uncontrolled Search Path Element
EPSS
Base Score:
0.21