Skip to main content

psqlODBC CVE-2026-138406

| EUVDEUVD-2026-137809 HIGH
Uncontrolled Search Path Element (CWE-427)
2026-11-29 PostgreSQL GHSA-78mc-2mv3-9r97
7.3
CVSS 3.1 · Vendor: PostgreSQL
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local write access to a search-path directory
  2. Delivery
    Plant malicious pgenlist.dll
  3. Exploit
    Application enlists in MSDTC
  4. Execution
    Driver loads DLL by name
  5. Persist
    Attacker code runs under app account
  6. Impact
    Privilege escalation on host

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V13 - Configuration Search path element control
Exploitation Conditions

Exploitation requires ALL of the following: (1) a Windows build of psqlODBC version 18.00.0007 or earlier compiled with Visual C++ 14 or later; (2) an application that actually sets SQL_ATTR_ENLIST_IN_DTC and enlists in MSDTC - applications that never enlist never load pgenlist.dll and are entirely unaffected; (3) a second local user (the attacker) who already has write permission to one of the directories Windows searches before the driver's own install path - the application's directory, the current working directory, or a directory on PATH; and (4) the legitimate application subsequently performing an MSDTC enlistment to trigger the load. Limiting factors: this is local-only (no network vector), needs pre-existing local write access to a search-path directory (typical of multi-user servers or loose directory ACLs), and depends on the victim application both using DTC enlistment and being a Windows VC++14+ build - Unix builds and DTC-free applications are not exposed.

Impact

This is a CWE-427 untrusted-search-path (DLL planting) flaw in psqlODBC's MSDTC enlistment path. The provided CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H = 7.3 High) is internally consistent with the description: exploitation is LOCAL (AV:L) and requires a second local user who already has write access to the application's directory, the current working directory, or a PATH directory (PR:L), plus a triggering event - the legitimate application must subsequently enlist in MSDTC (UI:R). It is therefore a local privilege-escalation / code-execution issue, not a remote or widespread-exploitation threat. No EPSS score and no CISA KEV entry were supplied, and no proof-of-concept or exploit reference is present (the only references are the vendor GHSA advisory and the changelog), so there is no signal of active or automatable exploitation. The vuln.today decision label is 'this_week' (not act_now/emergency), consistent with a real-but-non-urgent local flaw. One point to verify: the impact's security value comes from the planted DLL running under the application's account, which on a server may be more privileged than the attacker - this is a privilege-crossing effect that some analysts would score S:C; the input uses S:U, so the scope treatment is worth confirming with the vendor. Net: a legitimate patch-priority local flaw, not a high-CVSS-but-illusory issue, but its real risk is gated by multi-user Windows hosts where an unprivileged user can write to a search-path directory of a more-privileged PostgreSQL ODBC application that uses distributed transactions.

Exploit ScenarioDerived

On a shared Windows server, a low-privileged local user drops a malicious pgenlist.dll into a directory Windows searches ahead of the driver's install location (the application's directory, the current directory, or a PATH directory). The next time a more-privileged application using psqlODBC enlists in MSDTC (an app that sets SQL_ATTR_ENLIST_IN_DTC), Windows loads the attacker's DLL by name and runs its code under the application's account, escalating the attacker's privileges. No public exploit identified at time of analysis; only the vendor advisory and changelog are referenced.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 29, 2026

DLL planting in psqlODBC’s Windows MSDTC enlistment path lets a local user who can write to an application directory, the current directory, or a PATH directory execute code under the account of an application that enlists in MSDTC. Affected are Windows builds of psqlODBC up to and including 18.00.0007 that were compiled with Visual C++ 14 or later; Unix builds and applications that never set SQL_ATTR_ENLIST_IN_DTC are not exposed. The flaw is local-only and requires a second local user with pre-existing write access to a searched directory; no public exploit was identified at time of analysis.

RemediationAI

An exact fixed release is not specified in the provided data; follow the vendor advisory at https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-xqhj-2prq-g662 and the changelog at https://odbc.postgresql.org/changelog/ to identify and deploy a psqlODBC release after 18.00.0007 when available. In the interim, restrict write access so unprivileged local users cannot modify the affected application’s directory, the process current working directory, or any directory on PATH used by the application; removing untrusted PATH entries reduces exposure but can break tooling that relies on those paths, and tightening ACLs can interfere with application updates. If distributed transaction enlistment is not required, configure the application not to set SQL_ATTR_ENLIST_IN_DTC, which prevents pgenlist.dll from being loaded; this disables MSDTC enlistment functionality. Run affected applications under least-privileged accounts to limit the impact of code execution.

Affected VersionsENISA

psqlODBC 0 ≤18.00.0007

Affected Packages

euvd psqlodbc no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

psqlODBC uses pgenlist.dll for Microsoft Distributed Transaction Coordinator (MSDTC) enlistment. On affected Windows builds made with Visual C++ 14 or later, the driver loaded the DLL by name rather than by full path, so Windows searched the application’s directory, the current working directory, and directories on PATH before the driver’s own install location. This is CWE-427, an untrusted search path / DLL planting weakness: a local user with write access to any searched directory can place a malicious pgenlist.dll that is loaded the next time the application sets SQL_ATTR_ENLIST_IN_DTC and enlists in MSDTC, running attacker code in the application’s context and potentially under a more privileged account on a server. The provided data does not describe any additional trigger beyond this DTC enlistment path; applications that never enlist do not load pgenlist.dll, and Unix builds do not use it. The CVSS vector is local (AV:L), low complexity (AC:L), low privileges (PR:L), and user interaction (UI:R), consistent with a local DLL-planting scenario.

Know when Psqlodbc gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (PostgreSQL) PRIMARY 7.3 HIGH
AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 7.3 HIGH

Local DLL planting (AV:L) by an existing local user with write access to a search directory (PR:L), triggered when the app next enlists in MSDTC (UI:R); planted code runs fully under the app account (C/I/A:H).

3.1 AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (PostgreSQL).

CVSS VectorVendor: PostgreSQL

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

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.

Technical POC Analysis

CWE-427, Uncontrolled Search Path Element.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A high-severity DLL planting flaw affects Windows builds of psqlODBC (up to and including 18.00.0007) that enlist in MSDTC, allowing a local attacker with directory write access to execute code under the account of the enlisting application. Leadership should care because any Windows workload using this database driver alongside distributed transactions may be exposed to local privilege escalation, potentially compromising service accounts and host integrity. Unix deployments and applications that do not use DTC enlistment are unaffected, which limits exposure to a narrower Windows-specific population.

Business Impact: Medium
Compensating Controls

No vendor-released patch identified at time of analysis; restrict local write access to application, current working, and PATH directories used by processes that enlist in MSDTC, enforce safe DLL search mode, and avoid SQL_ATTR_ENLIST_IN_DTC where DTC enlistment is not operationally required.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Medium
PostgreSQL's Windows ODBC driver, common in Windows apps but not ubiquitous
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Medium

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2026-136507 HIGH
8.1 Nov 25

psqlODBC through 18.00.0006 parses and rebuilds connection strings in several ways that let an attacker-influenced value

CVE-2026-136502 HIGH
8.1 Nov 25

SQL injection in psqlODBC up to and including 18.00.0006 lets remote unauthenticated attackers run SQL with the applicat

CVE-2026-136500 HIGH
8.1 Nov 25

SQL injection in psqlODBC through 18.00.0006 lets an attacker who controls a bound character parameter or a name passed

CVE-2026-136515 HIGH
7.5 Nov 25

Heap corruption in psqlODBC through 18.00.0006 can crash an application or corrupt its memory when it processes attacker

CVE-2026-136505 HIGH
7.5 Nov 25

Extreme sizes and counts handled without range checks in psqlODBC's driver core let 16-bit counters and 2 GiB-scale size

CVE-2026-136509 HIGH
7.5 Nov 25

Heap corruption and driver crashes in psqlODBC (all versions up to and including 18.00.0006) stem from the driver not ve

CVE-2026-136506 HIGH
7.5 Nov 25

SQL injection in psqlODBC through crafted database, schema, table, column, operator, cursor, or parameter identifiers ca

CVE-2026-136512 HIGH
7.5 Nov 25

A client-side memory-corruption flaw in the PostgreSQL ODBC driver (psqlODBC) through 18.00.0006 causes the driver to wr

CVE-2026-136503 HIGH
7.5 Nov 25

Memory-safety defects across several code paths in psqlODBC, the PostgreSQL ODBC driver, allow a hostile or compromised

CVE-2026-120064 HIGH
7.5 Nov 02

Out-of-bounds reads and writes in psqlODBC before 18.00.0006 arise when a host application forwards untrusted column num

CVE-2026-120062 HIGH
7.5 Nov 02

SQL injection in psqlODBC before 18.00.0006 allows an attacker who can influence a table or schema name passed by a host

CVE-2026-120061 HIGH
7.5 Nov 02

A stack-based buffer overflow (CWE-121) in the psqlODBC driver, the official PostgreSQL ODBC driver, lets attacker-influ

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy