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

Published Updated

With debug logging enabled, psqlODBC writes database passwords in clear text to logs, exposing them to anyone reading the logs.

CVSS score

Medium

5.0/10

CVSS 3.1 · Scored by PostgreSQL Breakdown
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
None known
No public exploit found
Fix
None listed
No fixed version published
Attack path
Local or same network
Any signed-in user, a user must click or open something

What is CVE-2026-136504?

CVE-2026-136504 is a medium-severity information disclosure vulnerability in PostgreSQL psqlODBC, published on 25 Nov 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-532

How severe is CVE-2026-136504?

CVE-2026-136504 scores 5.0 out of 10 under CVSS 3.1, which is medium severity. It was scored by PostgreSQL.

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N

Which versions are affected by CVE-2026-136504?

An affected version is only exploitable if your software calls SQLDriverConnectW, SQLConnectW or SQLBrowseConnectW. Many projects that include it are not exposed.

How do I fix CVE-2026-136504?

No fix has been published for CVE-2026-136504 yet. Limit exposure of the affected software until one is available.

Upgrade, and rotate any secrets that may have been exposed. More about Information disclosure.

Is CVE-2026-136504 being exploited?

There is no known exploitation of CVE-2026-136504 in the wild and no public exploit code.

Sources

Also known as GHSA-4cgj-r3wg-3rj2, UBUNTU-CVE-2026-136504.

Is CVE-2026-136504 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free