Technical impact
The PostgreSQL psqlODBC driver for Microsoft Windows loads a helper DLL called pgenlist.dll during database enlistment in the Microsoft Distributed Transaction Coordinator. Because the driver is built with Visual C++ 14 or later, the DLL is located by name rather than by its installation path. As a result, the operating system searches standard directories such as the application directory, the current working directory, and the PATH environment for the DLL. A local user who has write access to any of these directories can place a malicious DLL that takes the name pgenlist.dll. When a database connection subsequently enlists in MSDTC, the driver loads the attacker‐supplied DLL and its code runs inside the application process, under the application’s user account. If that account has higher privileges than the attacker, the vulnerability can be used for local privilege escalation.
Affected Systems
The issue affects the Windows builds of the PostgreSQL psqlODBC driver (PostgreSQL:psqlODBC). All releases up to and including version 18.00.0007 are susceptible. The problem does not impact non‑Windows builds or applications that do not enable MSDTC enlistment, since the DLL is not loaded in those cases.
Risk and Exploitability
The vulnerability has a CVSS score of 7.3, indicating moderate to high severity. EPSS is not available, and the vulnerability is not listed in CISA’s KEV catalog, so current exploitation activity is unknown. However, the attack vector requires local user privileges to write to a DLL search path directory. Once exploited, the attacker gains the privileges of the application's process, which on a server may be significantly elevated. Given the severity rating and the potential for privilege escalation, the risk is considerable for environments that use this driver and allow local write access to the relevant directories.