Security mailing lists by PureSourceCode

CVE-2026-138404

MEDIUM 6.3CVSS 3.1

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)

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.

Published
29 Nov 2026
Last modified
3 Dec 2026
Assigned by
f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
NVD status
Awaiting Analysis
Weakness
CWE-379CWE-59CWE-732
Sources
NVDJSONCVE ListJSON

Scores

SourceScored byVersionScoreVector / decision
NVD f86ef6dc-4d3a-42ad-8f28-e6d5547a5007 (Secondary) CVSS 3.1 MEDIUM 6.3 CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L
CVE List PostgreSQL CVSS 3.1 MEDIUM 6.3 CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L
CVE List CISA-ADP SSVC Exploitation: none; Automatable: no; Technical Impact: total

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List https://odbc.postgresql.org/ psqlodbc <= 18.00.0007

References

History

  • 3 Dec 2026 21:56 UTC · CVE List: updated (other details)
  • 3 Dec 2026 21:56 UTC · NVD: updated (other details)
  • 30 Nov 2026 15:31 UTC · NVD: status Received → Awaiting Analysis
  • 29 Nov 2026 19:18 UTC · NVD: first stored (published 29 Nov 2026)
  • 29 Nov 2026 18:19 UTC · CVE List: first stored (published 29 Nov 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.