CVE-2026-138405 — PostgreSQL psqlODBC
One of 3 PostgreSQL psqlODBC vulnerabilities published together by NVD: our article covers all of them.
DatabasesVulnerabilitiesSummary
Before psqlODBC writes a connection string to its debug log, it masks the password. It masked only a keyword written exactly as PWD or Password. A password given under " PWD", "PWD ", "Passwd" or "sslpassword" went into the log unmasked. The log line for each keyword also showed the value of any keyword the driver does not recognise, so a password under a misspelled keyword was logged as well. A masked secret was replaced one character at a time, so the log showed the length of the password, and of each secret in pqopt. CVE-2026-136504 covers two other ways the password reached the log: the setup dialog's Test button and the Unicode connect functions logged the connection string before it was masked. That is fixed in 18.00.0007. The faults described here are in the masking itself, and they remain in 18.00.0007. The debug log is off by default, and only an administrator turns it on with the Debug setting. Only someone who later reads the log sees the password, which in practice means a log attached to a bug report or sent to support. Versions up to and including psqlODBC 18.00.0007 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.0007 | — |
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-138405?
Before psqlODBC writes a connection string to its debug log, it masks the password. It masked only a keyword written exactly as PWD or Password. A password given under " PWD", "PWD ", "Passwd" or "sslpassword" went into the log unmasked. The log line for each keyword also showed the value of any keyword the driver does not recognise, so a password under a misspelled keyword was logged as well. Weakness type: Insertion of Sensitive Information into Log File (CWE-532).
How severe is CVE-2026-138405?
CVE-2026-138405 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-138405 being exploited?
Not as far as is known: CVE-2026-138405 is not in CISA's Known Exploited Vulnerabilities catalog as of November 29, 2026.
Which versions are affected by CVE-2026-138405?
PostgreSQL psqlODBC ≤ 18.00.0007.
How do I fix CVE-2026-138405?
Apply the update or mitigation in the vendor's advisory, linked on this page under Vendor advisories.