Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-138404
Published:November 29, 2026
Updated:December 01, 2026
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.
Affected Packages
https://github.com/postgresql-interfaces/psqlodbc.git (GITHUB):
Affected version(s) >=REL-07_02_0003 <REL-18_00_0008 || >=REL-08_00_0001 <REL-18_00_0008 || >=REL-09_00_0100 <REL-18_00_0008 || >=REL-10_00_0000 <REL-18_00_0008 || >=REL-11_00_0000 <REL-18_00_0008 || >=REL-12_00_0000 <REL-18_00_0008 || >=REL-13_00_0000 <REL-18_00_0008 || =REL-15_00_0000 <REL-18_00_0008 || >=REL-16_00_0000 <REL-18_00_0008 || >=REL-17_00_0000 <REL-18_00_0008 || >=REL-18_00_0000 <REL-18_00_0008
Fix Suggestion:
Update to version REL-18_00_0008
Do you need more information?
Contact Us
CVSS v4
Base Score:
5.3
Attack Vector
LOCAL
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
LOW
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
6.3
Attack Vector
LOCAL
Attack Complexity
HIGH
Privileges Required
LOW
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
LOW
Weakness Type (CWE)
Creation of Temporary File in Directory with Insecure Permissions
Improper Link Resolution Before File Access
Incorrect Permission Assignment for Critical Resource
EPSS
Base Score:
0.18