CVE-2026-138406: Another local user's pgenlist.dll runs in the application

Published Nov 29, 2026
·
Updated

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 SQLATTRENLISTINDTC 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 Software

1 affected component
PostgreSQL psqlODBC<=18.00.0007

Event History

Nov 29, 2026
CVE Published
via MITRE·06:01 PM
Data Sourced
via MITRE·06:01 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed?

Only Windows deployments using psqlODBC versions up to and including 18.00.0007 are affected, and only when an application enlists in MSDTC by setting SQL_ATTR_ENLIST_IN_DTC. Applications that never set that attribute do not load pgenlist.dll and are unaffected.

2

What access does an attacker need?

The attacker needs local access and the ability to write a malicious pgenlist.dll into the application directory, the current directory, or a directory listed in PATH. Exploitation occurs when the application next enlists in MSDTC.

3

What privileges would malicious code receive?

The malicious DLL runs in the context of the application account, rather than the attacker's account. This can result in privilege escalation where the application runs under a more privileged account, such as on a server.

4

What can be done before patching?

Prevent untrusted local users from writing to the application directory, current directory, and directories on PATH that the application may search. Where operationally possible, avoid configuring the application to set SQL_ATTR_ENLIST_IN_DTC, since this prevents pgenlist.dll from being loaded.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203