CVE-2026-138406: PostgreSQL psqlODBC · Uncontrolled Search Path Element
Affects PostgreSQL psqlODBCSource CVE Database V5
Not known to be exploited · CVSS 7.3 High.
Data as of 29 Nov 2026, 18:30 UTC
Thin evidence
One scorer or none| CNA (PostgreSQL) | CVSS 3.1 | 7.3 |
|---|
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 29 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| psqlODBCpsqlodbc | Affected
| Fixed in– |
AI-suggested
Users should avoid running applications that set SQL_ATTR_ENLIST_IN_DTC with the vulnerable psqlODBC versions or restrict write permissions to directories in the DLL search path to prevent malicious DLL placement. Monitor the PostgreSQL vendor advisory for any forthcoming patches or official remediation guidance.
Description
CVE-2026-138406 is a vulnerability in the Windows builds of the PostgreSQL psqlODBC driver up to version 18.00.0007. It involves an uncontrolled search path element where the driver loads the pgenlist.dll library by name rather than by full path, allowing a local attacker to place a malicious DLL in a directory searched by Windows. This can lead to code execution under the application's account when the application enlists in MSDTC. Applications that do not use SQL_ATTR_ENLIST_IN_DTC are not affected.