Uncontrolled DLL search path in psqlODBC lets local users run code
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-427.
Summary
Up to and including psqlODBC 18.00.0007 on Windows loads pgenlist.dll by name for MSDTC enlistment. Windows searches the application's directory, the current directory and PATH, so a local user who can write to one of those directories can place a malicious pgenlist.dll there (CWE-427). Its code then runs inside the application, under the application's account, when the application enlists in MSDTC.
Written with Claude Haiku 5.5 from the sources below · 2026-11-29
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| PostgreSQL | psqlODBC | up to 18.00.0007 | — | No fix listed | CNA |
- psqlODBC VendorPostgreSQL Affected up to 18.00.0007 Fixed in — No fix listed CNA
Remediation
The sources list no fixed version for psqlODBC.
Written with Claude Haiku 5.5 from the sources below · 2026-11-29
Timeline
- 2026-11-29 Threatist record created from CVE-2026-138406
- 2026-11-29 Alias added: GHSA-78mc-2mv3-9r97
References
Advisory 1
Other 1
More PostgreSQL vulnerabilities
- TI-2024-01491 pgjdbc SQL Injection via line comment generation CVSS 3.1CRITICAL 10.0
- TI-2019-06651 In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and… CVSS 3.0HIGH 7.2
- TI-2017-05187 Improper authentication in postgresql CVSS 3.0CRITICAL 9.8
- TI-2022-06097 Unchecked Class Instantiation when providing Plugin Classes CVSS 3.1CRITICAL 9.8
- TI-2026-96877 SQL injection in pgjdbc simple query mode parameter quoting CVSS 3.1HIGH 8.1
- TI-2026-96876 SQL injection in pgjdbc through misparsed quoted literals CVSS 3.1HIGH 8.1
Sources
- CVE-2026-138406 · CVE Program
- CVE-2026-138406 · NVD
- FIRST EPSS
- GHSA-78mc-2mv3-9r97 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences