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

- Priority: **Routine**
- Reason: Not severe (CVSS 5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-29 · Modified: 2026-12-03
- Aliases: DEBIAN-CVE-2026-138405, UBUNTU-CVE-2026-138405
- Record: https://cvemate.com/vulnerability/CVE-2026-138405 · JSON: https://cvemate.com/vulnerability/CVE-2026-138405/json

## Description

```text
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.
```

## Signals

- CVSS: 5 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
- EPSS: 0.217%, percentile 12.895%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian psqlodbc (Debian): All versions (No fix recorded) \| \< 1:18.00.0008-1
- ubuntu psqlodbc (Ubuntu): All versions (No fix recorded)
- postgresql psqlodbc: ≤ 18.00.0007

## References

- <https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-vj88-7qrf-48fg>
- <https://odbc.postgresql.org/changelog/>
- <https://security-tracker.debian.org/tracker/CVE-2026-138405>
- <https://ubuntu.com/security/CVE-2026-138405>
- <https://www.cve.org/CVERecord?id=CVE-2026-138405>

---

Data as of 2026-12-05T04:51:26.747Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
