Skip to main content
VulnerabilityPublished

CVE-2026-138406: PostgreSQL psqlODBC · Uncontrolled Search Path Element

Affects PostgreSQL psqlODBCSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 7.3 High.

Data as of 29 Nov 2026, 18:30 UTC

CVSS 3.1 base score
7.3High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (PostgreSQL)CVSS 3.17.3
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 29 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
psqlODBCpsqlodbcAffected
  • <=18.00.0007
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.

References

Community reviews

Loading reviews…