Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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)

Quick assessment

Affected
PostgreSQL psqlODBC
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

启用 Debug 或 CommLog 后,psqlODBC 会将其日志文件写入共享目录,且文件名具有可预测性。默认情况下,Unix 类系统为 /tmp,Windows 为 C:\,每个文件名中包含进程 ID。该日志包含 SQL 文本、数据和连接详情。 在 Unix 类系统上,18.00.0006 中针对 CVE-2026-120066 的修复使驱动拒绝在日志路径上的符号链接。只有当已存在的文件是普通文件且属于运行应用程序的用户时,才会使用该文件。但它没有检查该文件是否存在其他硬链接。因此,另一个本地用户可以在日志路

CVSS 6.3 · Medium

Affected Version Matrix 1

VendorProduct Version RangeStatus
PostgreSQL psqlODBC ≤ 18.00.0007 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-138404

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
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)
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
在文件访问前对链接解析不恰当(链接跟随)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
PostgreSQL psqlODBC 0 ~ 18.00.0007 -

II. Public POCs for CVE-2026-138404

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-138404

请登录查看更多情报信息。

Other References for CVE-2026-138404 (2)

Same Patch Batch · PostgreSQL · 2026-11-29 · 3 CVEs total

CVE-2026-138406 7.3 HIGH Another local user's pgenlist.dll runs in the application
CVE-2026-138405 5.0 MEDIUM Debug log records the database password under several spellings of the keyword, and the le

IV. Related Vulnerabilities