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

Status: published. Published: 2026-11-25. Updated: 2026-11-25.

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.

## Remediation

No remediation reported in collected sources

## Affected products and versions

- PostgreSQL / psqlODBC (psqlodbc): ≥ 0; ≤ 18.00.0006 (affected, custom). Source: CNA: PostgreSQL

## Severity and prioritization

- CVSS 3.1: 5 (medium); CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N; source: CNA: PostgreSQL

- CVSS 3.1: 5 (medium); CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N; source: NVD: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007

- CISA KEV: No listing in collected sources

- EPSS: Not available

- SSVC: Not available

- Weaknesses: CWE-532

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-4cgj-r3wg-3rj2 (CNA: PostgreSQL; vendor-advisory)

- https://odbc.postgresql.org/changelog/ (CNA: PostgreSQL; release-notes)

- https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-4cgj-r3wg-3rj2 (f86ef6dc-4d3a-42ad-8f28-e6d5547a5007)

- https://odbc.postgresql.org/changelog/ (f86ef6dc-4d3a-42ad-8f28-e6d5547a5007)

## Provenance

- CNA: PostgreSQL: https://www.cve.org/CVERecord?id=CVE-2026-136504; retrieved 2026-11-25; source updated 2026-11-25

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-136504; retrieved 2026-11-26; source updated 2026-11-25

Revision: bf0aabb7fdac4c37060943fb170f3eaf5703ec1587386ec497e950ff52e977c7

Canonical: https://y2.dev/cve/CVE-2026-136504

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.