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

- Severity: High 7.3 (CVSS:3.1, scored by PostgreSQL) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-11-29T18:01:25.385Z
- Modified: 2026-11-30T15:28:09.390Z
- Weaknesses: CWE-427
- Assigned by: PostgreSQL

## Description

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.

(As written by CVE List.)

## Affected

- psqlodbc: up to 18.00.0007

## References

- <https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-xqhj-2prq-g662> (vendor-advisory)
- <https://odbc.postgresql.org/changelog/> (release-notes)

## Sources

- CVE List: [CVE-2026-138406](https://www.cve.org/CVERecord?id=CVE-2026-138406), CVE Terms of Use, modified 2026-11-29
- NVD: [CVE-2026-138406](https://nvd.nist.gov/vuln/detail/CVE-2026-138406), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-138406 · Whole record: https://cve.day/CVE-2026-138406.json · Rebuilt by cve.day 2026-11-30T15:32:19.449Z
