Skip to main content

psqlODBC CVE-2026-138404

| EUVDEUVD-2026-137807 MEDIUM
Improper Link Resolution Before File Access (CWE-59)
2026-11-29 PostgreSQL GHSA-5rwr-cvcx-g7f2
6.3
CVSS 3.1 · Vendor: PostgreSQL
View

Attack ChainAIDerived

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

  1. Access
    Obtain local user account on shared host
  2. Delivery
    Plant hard link or FIFO at predictable PID-based log path
  3. Exploit
    Victim runs app with Debug/CommLog enabled
  4. Execution
    Driver writes log to attacker-controlled target
  5. Impact
    Read exposed SQL and connection credentials or corrupt victim file

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Symlink resolution safety
Exploitation Conditions

Debug or CommLog logging must be enabled in psqlODBC - these are off by default and only an administrator turns them on - and the attacker must have a local user account on the same host. On Unix-like systems, exploitation requires pre-placing a hard link (to a file the victim owns) or a FIFO at the shared log path, which means predicting the PID-based file name in the world-writable log directory (default /tmp). On Windows, the exposure arises when the log file is written to C:\ (or the MSDTC log in C:\ or C:\pgdtclog) by a service or elevated process so it inherits that directory's default/permissive ACLs, allowing other local users to read (and, in a default-permission directory under C:\, modify) it; a file an attacker has already created at the log path is used as-is. Limiting factors: non-default logging configuration, local-only access, a required race on the predictable file name (Unix), and the victim actually running the logging-enabled application.

Impact

Signals point to a genuine but second-tier issue. The CVSS 3.1 vector (AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L, base 6.3 Medium) describes high confidentiality/integrity impact but stacks several barriers: local attack vector, high attack complexity, a low-privileged local account, and required victim interaction. Exploitation is further gated by a non-default precondition - Debug or CommLog must be enabled, which only an administrator does. The vuln.today decision label is 'this_month' (not act_now/emergency), consistent with managed rather than urgent priority. No EPSS score, no CISA KEV listing, and no PoC reference are present in the input, so there is no public exploit identified at time of analysis and no probabilistic exploitation signal to weigh - EPSS is simply missing, not low. Net: the C:H/I:H impacts look alarming in isolation, but AV:L + AC:H + PR:L + the admin-enabled-logging precondition make this a real-but-contained local, multi-tenant/shared-host risk rather than a broadly exploitable priority. Treat as routine patching for shared hosts where psqlODBC logging may be turned on.

Exploit ScenarioDerived

On a shared Unix host, a local unprivileged user pre-creates a hard link (or a FIFO) at the predictable /tmp log path matching the victim process's PID; when the victim runs an application that uses psqlODBC with Debug/CommLog enabled, the driver appends sensitive SQL text, data, and connection details into the attacker-chosen target file (or hangs on the FIFO). On Windows, logs written to C:\ or C:\pgdtclog by an elevated service inherit that directory's permissive ACLs, letting any local user read the captured credentials and queries. No public exploit identified at time of analysis; the local vector and high attack complexity limit practical reach.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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

psqlODBC through 18.00.0007, when Debug or CommLog logging is enabled, writes SQL text, result data and connection details to predictably named, PID-suffixed log files in shared locations - /tmp by default on Unix-like systems and C:\ on Windows. On Unix, the vendor's earlier symlink fix (18.00.0006) checks that the log path is a regular file owned by the calling user but not whether it has other hard links, so a local user can hard-link a victim-owned file into the log path and have the driver append to it; a FIFO at the log path (not covered by the earlier fix) instead blocks the application until someone reads from it. On Windows no such checks exist, so a log created in C:\ by a service or elevated process inherits that directory's permissive ACLs and can be read - and in a default-permission directory created under C:\ also modified - by other local users, with an attacker-created file at the log path used as-is; the MSDTC log in C:\ or C:\pgdtclog is handled the same way. Exploitation requires non-default logging enabled by an administrator, a local account on the same host, and on Unix a race against the predictable PID-based filename; no public exploit was identified at time of analysis.

RemediationAI

No vendor-released fixed version is identified in the data available at time of analysis; 18.00.0007 and all earlier releases are affected, so track the vendor advisory at https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-g696-gg8r-7j45 and the changelog at https://odbc.postgresql.org/changelog/ for the patched release and upgrade as soon as it is published. Until then, the documented limiting control is to keep the Debug and CommLog options disabled, which is their default state; only an administrator can enable them, so audit DSNs and connection strings for Driver={PostgreSQL Unicode} entries carrying Debug=1 or CommLog=1 and turn them off, accepting the loss of driver-level SQL tracing and connection diagnostics on those hosts. Prioritise removing logging where psqlODBC runs on multi-user Unix hosts with a /tmp log directory or on Windows under a service or elevated account writing to C:\ or C:\pgdtclog, since those are the configurations where the inherited permissions and shared path expose log contents to other local users.

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

The root cause is CWE-59, improper link resolution before file access. The driver builds its Debug/CommLog filename from a fixed prefix plus the process ID inside a shared, world-writable directory, then opens the path for append without verifying the file's link count or object type on Windows, and without covering hard links or FIFOs on Unix. The prior fix for CVE-2026-120066 in 18.00.0006 hardened only the Unix path: it refused a symbolic link, and accepted an existing file only if it was a regular file owned by the user running the application. That leaves two gaps - the absence of an st_nlink check allows another local user to place a hard link to a victim-owned file at the log path (the link passes the symlink and ownership checks because the underlying inode is the victim's regular file), and a FIFO at the log path was never handled, so open() blocks until a reader appears. The Windows code path received none of these checks, so the security of the log rests entirely on the inherited ACL of the containing directory (C:\ or C:\pgdtclog for the MSDTC log), which is permissive by default. The assessed vector CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L reflects local access, high attack complexity from the filename race, low privileges, required user interaction, and high confidentiality and integrity impact confined to the victim's own data. Debug and CommLog are off by default and an administrator must turn them on, which limits the population of exposed installations.

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 6.3 MEDIUM
AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L
vuln.today AI 6.3 MEDIUM

Local co-tenant attacker (AV:L, PR:L) must win a predictable-name link/FIFO race and rely on admin-enabled, non-default logging (AC:H) while the victim runs the app (UI:R); logs expose data (C:H), hard links corrupt victim files (I:H), FIFO hangs the app (A:L).

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

Primary rating from Vendor (PostgreSQL).

CVSS VectorVendor: PostgreSQL

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

DescriptionCVE.org

With Debug or CommLog on, psqlODBC writes its log files to a shared directory under predictable names. By default that is /tmp on Unix-like systems and C:\ on Windows, and each file name holds the process ID. The logs hold SQL text, data and connection details.

On Unix-like systems, the fix for CVE-2026-120066 in 18.00.0006 made the driver refuse a symbolic link at the log path. It used an existing file only if it was a regular file owned by the user running the application. It did not check whether the file had other hard links. So another local user could create a hard link at the log path to a file the victim owns. The link passed every check, and the driver appended its log to the victim's file. A FIFO at the log path is a second case, which CVE-2026-120066 did not cover: opening it blocked the application until another process read from it.

On Windows, the fix for CVE-2026-120066 did not apply, and the driver opened the log file without any of these checks. A log file created in C:\ by a service or an elevated process got that directory's permissions, which let other local users read it. In a log directory created under C:\ with default permissions, they could also modify it. A file that another user had already created at the log path was used as it was. The MSDTC log in C:\ or C:\pgdtclog was opened the same way.

Debug and CommLog are off by default, and only an administrator turns them on.

Versions up to and including psqlODBC 18.00.0007 are affected.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Medium
official PostgreSQL ODBC driver, common in enterprise app-to-Postgres connectivity but not everywhere
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
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