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)

Published Nov 29, 2026
·
Updated

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 Software

1 affected component
PostgreSQL psqlODBC<=18.00.0007

Event History

Nov 29, 2026
CVE Published
via MITRE·06:01 PM
Data Sourced
via MITRE·06:01 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What conditions are required for exposure?

Debug or CommLog must be enabled, because the issue concerns the driver's log files. The default log location is /tmp on Unix-like systems and C:\ on Windows, and log names include the application process ID.

2

What could a local attacker obtain or do?

Logs can contain SQL text, data, and connection details. On Unix-like systems, a local user could create a hard link at the predictable log path so the driver appends log content to a file owned by the victim; a FIFO at that path can also block the application until another process reads it.

3

How does the Windows impact differ?

The earlier fix did not apply on Windows, where the driver opened log files without the described link and ownership checks. Logs created directly in C:\ by a service or elevated process could be readable by other local users, and logs in a directory under C:\ with default permissions could also be modified by them.

4

What can be done if an update cannot be applied immediately?

Disable Debug and CommLog where they are not required, preventing creation of the affected log files. If logging is necessary, avoid the default shared log locations described in the advisory.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203