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

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

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.

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

CVSS 5.0 · 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-138405

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
Debug log records the database password under several spellings of the keyword, and the length of masked passwords
Source: 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.
Source: 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
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-138405

# 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-138405

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

Other References for CVE-2026-138405 (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-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