Bug 2584548 (CVE-2026-136504)

Summary: CVE-2026-136504 postgresql-odbc: postgresql-odbc: Information disclosure via unmasked passwords in debug logs
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: rhel-process-autobot, watson-tool-maintainers
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in postgresql-odbc. When debug logging is enabled, database connection passwords are written to log files in cleartext or reversibly encoded formats, bypassing intended redaction mechanisms. An unauthorized user with access to these debug logs could read the exposed credentials and gain unauthorized access to the database.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-11-25 22:32:17 UTC
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.