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

- Severity: Medium 5.0 (CVSS:3.1, scored by PostgreSQL) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2026-11-25T22:25:47.271Z
- Modified: 2026-11-30T15:28:09.390Z
- Weaknesses: CWE-532
- Assigned by: PostgreSQL

## 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.

(As written by CVE List.)

## Affected

- psqlodbc: up to 18.00.0006

## References

- <https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-4cgj-r3wg-3rj2> (vendor-advisory)
- <https://odbc.postgresql.org/changelog/> (release-notes)

## Sources

- CVE List: [CVE-2026-136504](https://www.cve.org/CVERecord?id=CVE-2026-136504), CVE Terms of Use, modified 2026-11-25
- NVD: [CVE-2026-136504](https://nvd.nist.gov/vuln/detail/CVE-2026-136504), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-136504 · Whole record: https://cve.day/CVE-2026-136504.json · Rebuilt by cve.day 2026-11-30T15:32:28.377Z
