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

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-138405— Debug log records the database password under several spellings of the keyword, and the length of masked passwords

一分钟漏洞结论

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

在 psqlODBC 将连接字符串写入调试日志之前,它会对密码进行掩码处理。但它只掩码以完全固定的关键字形式出现的密码,也就是“PWD”或“Password”。如果密码使用了带前导/尾随空格的写法(如“ PWD”“PWD ”)、拼写错误的“Passwd”,或使用“sslpassword”,这些密码都会以未掩码的形式进入日志。此外,日志中每一行关键字的值也会被记录,包括驱动程序不识别的关键字;因此,如果密码放在一个拼写错误的关键字下,也会被记录。 被掩码的机密信息是按字符逐个替换的,因此日志会显示密码长度,以及 pq

CVSS 5.0 · Medium

影响版本矩阵 1

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

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

漏洞信息

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

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

Vulnerability Title
Debug log records the database password under several spellings of the keyword, and the length of masked passwords
来源: CVE Program / CVE List V5
Vulnerability Description
Before psqlODBC writes a connection string to its debug log, it masks the password. It masked only a keyword written exactly as PWD or Password. A password given under " PWD", "PWD ", "Passwd" or "sslpassword" went into the log unmasked. The log line for each keyword also showed the value of any keyword the driver does not recognise, so a password under a misspelled keyword was logged as well. A masked secret was replaced one character at a time, so the log showed the length of the password, and of each secret in pqopt. CVE-2026-136504 covers two other ways the password reached the log: the setup dialog's Test button and the Unicode connect functions logged the connection string before it was masked. That is fixed in 18.00.0007. The faults described here are in the masking itself, and they remain in 18.00.0007. The debug log is off by default, and only an administrator turns it on with the Debug setting. Only someone who later reads the log sees the password, which in practice means a log attached to a bug report or sent to support. Versions up to and including psqlODBC 18.00.0007 are affected.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
来源: CVE Program / CVE List V5
Vulnerability Type
通过日志文件的信息暴露
来源: CVE Program / CVE List V5

受影响产品

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

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

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

未找到公开 POC。

登录以生成 AI POC

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

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

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

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

CVE-2026-138406 7.3 HIGH Another local user's pgenlist.dll runs in the application
CVE-2026-138404 6.3 MEDIUM Another local user can read the driver's log files or make it write into the victim's own

IV. Related Vulnerabilities