CVE-2026-136504 — PostgreSQL psqlODBC
One of 17 PostgreSQL psqlODBC vulnerabilities published together by NVD: our article covers all of them.
WindowsOperating systemsDatabasesVulnerabilitiesSummary
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.
Severity breakdown
Medium · 5.0
An attacker with a normal user account can exploit this with local access if a user is tricked into an action.
- Attack from
- local access (a logged-in user, or a malicious file opened on the device)
- Attack complexity
- low (no special conditions)
- Login needed
- yes, a normal user account
- User action needed
- yes, someone must click, open or visit something
- Scope
- stays within the vulnerable component
- Impact
- high on confidentiality, none on integrity and availability
Weakness
- CWE-532: Insertion of Sensitive Information into Log File
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| PostgreSQL psqlODBC | ≤ 18.00.0006 | — |
References by type
Vendor advisories
Other references
Affected
- PostgreSQL psqlODBC
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-136504?
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. Weakness type: Insertion of Sensitive Information into Log File (CWE-532).
How severe is CVE-2026-136504?
CVE-2026-136504 has a CVSS 3.1 base score of 5.0 (medium), from the CNA. An attacker with a normal user account can exploit this with local access if a user is tricked into an action.
Is CVE-2026-136504 being exploited?
Not as far as is known: CVE-2026-136504 is not in CISA's Known Exploited Vulnerabilities catalog as of November 26, 2026. EPSS estimates a 0.2% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-136504?
PostgreSQL psqlODBC ≤ 18.00.0006.
How do I fix CVE-2026-136504?
Apply the update or mitigation in the vendor's advisory, linked on this page under Vendor advisories.
Timeline & sources
References
Related vulnerabilities & news
- psqlODBC Memory Corruption Vulnerability in PostgreSQL
- psqlODBC Connection String Parsing Flaw Enables Remote Code Execution
- psqlODBC Case Sensitivity Flaw Enables Privilege Escalation
- psqlODBC SQL Injection Vulnerability in PostgreSQL
- PowerPanel Business Vulnerabilities Exploited in Targeted Cyberattack