目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

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)

一分钟漏洞结论

影响对象
PostgreSQL psqlODBC
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

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

CVSS 6.3 · Medium

影响版本矩阵 1

厂商产品 版本范围状态
PostgreSQL psqlODBC ≤ 18.00.0007 affected
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-138404 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

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)
来源: 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.
来源: 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
来源: CVE Program / CVE List V5
Vulnerability Type
在文件访问前对链接解析不恰当(链接跟随)
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
PostgreSQL psqlODBC 0 ~ 18.00.0007 -

二、漏洞 CVE-2026-138404 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-138404 的情报信息

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

CVE-2026-138404 其他参考 (2)

同批安全公告 · PostgreSQL · 2026-11-29 · 共 3 条

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