5

CVE-2026-138405: Debug log records the database password under several spellings of the keyword, and the length of masked passwords

Awaiting analysis
AliasesDEBIAN-CVE-2026-138405UBUNTU-CVE-2026-138405
Published 29-11-2026Last modified 03-12-2026

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.

Priority
Routine

Not severe (CVSS 5, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.0/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.22%
0%100%
Low · Change unavailable
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 29-11-2026
    PublishedVulnerability first disclosed.
  2. 03-12-2026
    Last 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

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

30-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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
Ubuntu1 product
  • psqlodbcAll versions (No fix recorded)

3 vendors · 3 products

References

5 links