CVE-2026-138405: Debug log records the database password under several spellings of the keyword, and the length of masked passwords
Vulnerability summary
CVE-2026-138405 is a medium (CVSS 5.0) vulnerability in postgresql psqlodbc. EPSS estimates a 0.22% chance of exploitation in the next 30 days, higher than 12.8% of scored vulnerabilities.
Not severe (CVSS 5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 29-11-2026PublishedVulnerability first disclosed.
- 03-12-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
4 scores · 4 sources · 1 version- NVDNIST5.0MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
- OSV · DebianEcosystem advisory · calculated5.0MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
- OSV · UbuntuEcosystem advisory · calculated5.0MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
EPSS trend
Probability
0.22%
Chance of exploitation in the next 30 days
Percentile
13%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.
Debian1 product
- psqlodbcAll versions (No fix recorded) | < 1:18.00.0008-1
Postgresql1 product
- psqlodbc≤ 18.00.0007
Ubuntu1 product
- psqlodbcAll versions (No fix recorded)
3 vendors · 3 products
References
5 links- github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-vj88-7qrf-48fgVendor AdvisoryREPORT
- odbc.postgresql.org/changelog/Release Notes