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)

MonitorData theft and tampering with local access.
6.3MEDIUM

CVE-2026-138404

Key Information:

Vendor

Postgresql

Status
CVE ID
CVE ID:
CVE-2026-138404
Vendor
CVE Published:
29 November 2026

Timeline

  • Vulnerability published

  • Vulnerability Reserved

How risky is it?

  • No: Needs local access
  • No: No public exploit yet
  • No: Not on CISA's exploited list
  • No: No ransomware use seen

Our verdict

Monitor

Low risk for most. Patch in your normal cycle.

What to do

1Check the vendor's fix

No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.

Read the vendor advisory โ†—
2Why it's rated "Monitor"
  • Its CVSS severity is medium (6.3).

What is CVE-2026-138404?

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 Version(s)

psqlODBC 0 <= 18.00.0007

References

Type Confusion Vulnerability in PostgreSQL Database Software

CVE-2026-6460
PostgreSQLPostgresql๐Ÿ˜„๐Ÿ‘พ8.8HIGH

Type Confusion Vulnerability in PostgreSQL Database Management System

CVE-2026-116331
PostgreSQLPostgresql๐Ÿ˜„๐Ÿ‘พ8.8HIGH

Integer Wraparound Vulnerability in PostgreSQL Database Management System

CVE-2026-116328
PostgreSQLPostgresql8.8HIGH
View more Postgresql vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities ยท Report a correction

CVSS V3.1

Score:
6.3
Severity:
MEDIUM
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Local
Attack Complexity:
High
Privileges Required:
Low
User Interaction:
Required
Scope:
Unchanged
.