CVE Professor
/
All CVEs
CVE-2026-138406

CVE-2026-138406 — PostgreSQL PsqlODBC — CWE-427

HIGH CVSS 7.3 NVD

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.

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.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Attack Vector Local AV:L
Attack Complexity Low AC:L
Privileges Req. Low PR:L
User Interaction Required UI:R
Scope Unchanged S:U
Confidentiality High C:H
Integrity High I:H
Availability High A:H
AI Security Analysis & Remediation

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-138406
CVSS 7.3/10 · HIGH · 29.11.2026
CWE: CWE-427
Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 WHAT IS THIS VULNERABILITY?
Summary: 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.
Affected: PostgreSQL psqlODBC

⚡ ATTACK VECTOR
Local/physical access (AV:L) · low-privilege account (PR:L) · user interaction required (UI:R) · low attack complexity (AC:L).

🌍 REAL WORLD IMPACT
All confidential data readable/stealable; data can be modified or deleted; service can be completely taken down.

🛡️ REMEDIATION
→ Apply vendor security update for PostgreSQL psqlODBC.
→ Add WAF rule, create IDS alert for anomalous traffic.

⚠️ URGENCY
⚠️ Planned maintenance (2 weeks).

────────────────────────────────────────
[Automated Technical Vulnerability & CVSS Vector Analysis]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="PostgreSQL psqlODBC"
CVSS Score
7.3 / 10 · CVSS HIGH
Weakness Types (CWE)
CWE-427
Affected Products (1)
PostgreSQL:psqlODBC
References & Advisories (2)
Related CVEs
7.1
CVE-2026-144602
pgRouting through 4.0.3 contains a NULL pointer dereference vulnerability in pgr_turnRestrictedPath that allow
7.1
CVE-2026-144683
plv8 through 3.2.5 contains an unbounded stack allocation vulnerability in GetJsonbValue that allows low-privi
5.9
CVE-2026-142650
Laravel's PostgreSQL Query Grammar does not escape embedded single quotes in JSON path attributes when compili
8.5
CVE-2026-107669
A vulnerability allowing a low-privileged local user to execute arbitrary code with the privileges of the Veea
7.8
CVE-2026-127176
IBM PowerVM VIOS 4.1 could allow a local authorized user to escalate their privileges due an uncontrolled sea
7.0
CVE-2026-112767
A privileged executable search-path vulnerability in the UpdateParam.bat script included with Silicon Labs CP2
4.7
CVE-2026-144334
## Impact On Windows, a local account allowed to create drive-root directories can influence the owner identi