Skip to content
DayZeroHub
Medium Not yet writtenCVSS 5CVE-2026-136504

CVE-2026-136504: Debug log records the database password in clear text

PostgreSQL psqlODBC

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-136504: medium-severity vulnerability (CVSS 5) in PostgreSQL psqlODBC.

What happened

Original description from the source: 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.

Why it matters

Medium severity, CVSS 5.

Affected products and versions

PostgreSQL psqlODBC <= 18.00.0006

ProductVersionsFixed in
PostgreSQL psqlODBC<= 18.00.0006—

Action recommended by the source

See the official references for the fix or mitigation.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-532

Relevant change history

  1. Published

    Preliminary advisory published.