# CVE-2026-138406: Another local user's pgenlist.dll runs in the application

- **Severity:** HIGH 7.3
- **CVSS:** 7.3 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **CWE:** CWE-427
- **Published:** 2026-11-29T18:01:25.385Z
- **Modified:** 2026-11-29T19:17:02.237Z

> **AI summary (AI-generated, claude-haiku-5-5):** 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.

## Who should check

- Anyone running PostgreSQL psqlODBC \<= 18.00.0007

## 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

- PostgreSQL psqlODBC: \<= 18.00.0007 (cvelist)

## Technologies

PostgreSQL, Windows (AI-matched)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-xqhj-2prq-g662>
- other: <https://odbc.postgresql.org/changelog/>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-138406>

HTML: <https://flawdb.com/CVE-2026-138406> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-138406>
