CVE-2026-136504: Debug log records the database password in clear text
With the driver's debug log (MyLog) turned on, two paths write the database password to the log in clear text, both beside a line where the driver's own redaction masks it as PWD=xxxxx:
- Pressing "Test" in the Windows data source setup dialog (psqlsetup.dll) logs the whole connection string, which carries PWD= percent-encoded, which is reversible, and any password= or sslpassword= inside pqopt. - The Unicode connect functions SQLDriverConnectW, SQLConnectW and SQLBrowseConnectW log their arguments as they convert them between UTF-16 and UTF-8, before the masking happens. The ANSI entry points are unaffected.
Turning the log on takes an administrator, and MyLog is off by default. The exposure is the person who later reads the log, which in practice means a log attached to a bug report or handed to support. Making that safe is the purpose of the driver's redaction, and these two sites bypassed it.
Versions up to and including psqlODBC 18.00.0006 are affected.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to password disclosure?
Exposure requires MyLog debug logging to be enabled, which is off by default and requires an administrator to turn on. The practical risk is to people who later receive or read the generated log, such as support staff or recipients of bug reports.
Which connection methods can place credentials in the log?
The Windows data source setup dialog can log the full connection string when Test is pressed, including a reversibly percent-encoded PWD value and password or sslpassword values within pqopt. The Unicode SQLDriverConnectW, SQLConnectW, and SQLBrowseConnectW functions can also log their arguments before redaction; ANSI entry points are unaffected.
How can I determine whether a deployment is affected?
Versions up to and including psqlODBC 18.00.0006 are affected. Check whether MyLog was enabled and review generated debug logs, especially logs created through the Windows setup dialog test function or Unicode connection APIs, for clear-text or percent-encoded credentials.
What should be done if affected logs may have been shared?
Treat credentials present in those logs as exposed, particularly if logs were attached to bug reports or provided to support, and replace the affected database passwords. Avoid sharing MyLog output that may contain connection strings or Unicode connection-function arguments.