CVE-2026-138406
Another local user's pgenlist.dll runs in the application
AI summary AI generated
A local user who can write to a directory the application searches can plant a malicious pgenlist.dll and run code in applications using the Windows psqlODBC driver when they enlist in MSDTC.
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running PostgreSQL psqlODBC <= 18.00.0007
Vulnerability facts
- Affected
- PostgreSQL psqlODBC <= 18.00.0007
- Fixed in
- No fix listed yet
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.3 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: Required
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- CWE
- CWE-427
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PostgreSQL psqlODBC | <= 18.00.0007 | — | cvelist |
Versions mentioned in the description AI generated
Extracted by AI; each line quotes the description word for word. Source data above takes precedence.
- Affected: psqlODBC up to and including 18.00.0007
Versions up to and including psqlODBC 18.00.0007 are affected.
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-138406. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-138406.md Affected: PostgreSQL psqlODBC <= 18.00.0007 Fixed in: no fixed version listed yet Steps: 1. Search this machine and project for PostgreSQL psqlODBC: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
Technologies
References
Vendor advisories
FAQ
Is CVE-2026-138406 being exploited?
There is no confirmed exploitation: CVE-2026-138406 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.
How serious is CVE-2026-138406?
High: CVSS 7.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2026-138406?
PostgreSQL psqlODBC <= 18.00.0007.
Is there a fix for CVE-2026-138406?
No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2026-138406?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.
More PostgreSQL vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| CRITICAL 9.4 | CVE-2026-138445 Umami through 3.5.0 SQL Injection via Reports API Filter Prefix | Node.js+1 | ||
| MEDIUM 5.0 | CVE-2026-138405 Debug log records the database password under several spellings of the keyword, and the length of masked passwords | PostgreSQL | ||
| MEDIUM 6.3 | CVE-2026-138404 Another local user can read the driver's log files or make it write into the victim's own files (incomplete fix for CVE-2026-120066) | PostgreSQL | ||
| MEDIUM 6.0 | CVE-2026-138032 WhoDB 0.88.0 before 0.132.0 MCP Read-Only Bypass via Server-Side File Writes | MCP servers and SDKs+2 | EPSS 32% | |
| HIGH 8.7 | CVE-2026-137526 ToolJet before 3.21.96-LTS Authorization Bypass via TJDB PostgREST Proxy | PostgreSQL | EPSS 32% |