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)

Vulnerability · Reported by NVD · · CWE-379, CWE-59, CWE-732

Severity
Medium Risk score 63/100
CVSS
6.3 v3.1 · from NVD
Exploit chance (EPSS)
– Not available yet
Known exploited
No Not in CISA KEV

Summary

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 i

How this vulnerability can be exploited

An attacker can exploit this vulnerability with local access to the system, with a low-privileged account, and only if a user is tricked into an action (such as clicking a link or opening a file). Attack complexity is high, meaning specific conditions must exist first. If successful, the attacker could read sensitive data and modify data or code.

Is it being exploited?

There is no public evidence of active exploitation yet. Monitor for exploit releases, especially if the product is internet-facing.

Patch priority and what to do

Patch during routine updates. Lower severity, but keep it on your list. 1) Check whether you run the affected product and version. 2) Apply the vendor update or patch listed in the advisory. 3) Warn users about suspicious links and files that could trigger the flaw. 4) Review logs for signs of exploitation since the publication date.

CVSS vector

CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L

See what each part means in the official CVSS calculator ↗

Tags

CVE-2026-138404, Microsoft

Sources & references

How this data is collected: methodology & sources.

Run this software? Get free alerts for new vulnerabilities →

Need to block attackers? Free hourly IOC blocklists (IPs, domains, URLs, hashes) →

Open the live threat dashboard →

Subscribe via RSS.