Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Windows

CVE-2026-138404 — PostgreSQL psqlODBC

Medium · CVSS 6.3 First seen November 29, 2026

One of 3 PostgreSQL psqlODBC vulnerabilities published together by NVD: our article covers all of them.

WindowsOperating systemsDatabasesVulnerabilities

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 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.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

Medium · 6.3 CVSS 3.1 base score from the CNA

An attacker with a normal user account can exploit this with local access if a user is tricked into an action, but only under specific conditions.

Attack from
local access (a logged-in user, or a malicious file opened on the device)
Attack complexity
high (only works under specific conditions)
Login needed
yes, a normal user account
User action needed
yes, someone must click, open or visit something
Scope
stays within the vulnerable component
Impact
high on confidentiality and integrity, low on availability

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

Weakness

  • CWE-59: Improper Link Resolution Before File Access ('Link Following')
  • CWE-379: Creation of Temporary File in Directory with Insecure Permissions
  • CWE-732: Incorrect Permission Assignment for Critical Resource

Affected and fixed versions

ProductAffected versionsFixed in
PostgreSQL psqlODBC≤ 18.00.0007—

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Vendor advisories

Other references

Details from NVD (public domain).

Affected

  • PostgreSQL psqlODBC

What to do

  • Follow the vendor advisory and the references below for fixed versions and workarounds.

Frequently asked questions

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. Weakness type: Improper Link Resolution Before File Access ('Link Following') (CWE-59).

How severe is CVE-2026-138404?

CVE-2026-138404 has a CVSS 3.1 base score of 6.3 (medium), from the CNA. An attacker with a normal user account can exploit this with local access if a user is tricked into an action, but only under specific conditions.

Is CVE-2026-138404 being exploited?

Not as far as is known: CVE-2026-138404 is not in CISA's Known Exploited Vulnerabilities catalog as of November 29, 2026.

Which versions are affected by CVE-2026-138404?

PostgreSQL psqlODBC ≤ 18.00.0007.

How do I fix CVE-2026-138404?

Apply the update or mitigation in the vendor's advisory, linked on this page under Vendor advisories.

Timeline & sources

References

Related vulnerabilities & news