6.3
MEDIUM CVSS 3.1
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)
Description

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.

INFO

Published Date :

Nov. 29, 2026, 6:01 p.m.

Last Modified :

Nov. 29, 2026, 6:01 p.m.

Remotely Exploit :

No

Source :

PostgreSQL
Affected Products

The following products are affected by CVE-2026-138404 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Postgresql psqlodbc
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 MEDIUM f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
CVSS 3.1 MEDIUM MITRE-CVE
Solution
Update psqlODBC to version 18.00.0007 or later to address log file access vulnerabilities.
  • Update psqlODBC to version 18.00.0007 or later.
  • Ensure Debug and CommLog are turned off when not needed.
  • Configure log directories with restricted permissions.
  • Review and apply vendor-specific security patches promptly.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-138404 vulnerability anywhere in the article.

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.