CVE-2026-138405
published medium CVSS 3.1 · 5.0Debug log records the database password under several spellings of the keyword, and the length of masked passwords
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| PostgreSQL | — | psqlodbcpsqlODBC · 0 through 18.00.0007 · Other versions: unaffected | Affected | Not stated | PostgreSQL |
| Amazon Linux | AL2 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.0 / 10
- Severity
- medium
- Provider
- PostgreSQL · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| PostgreSQL | psqlODBC | 0 through 18.00.0007 (affected · custom)Default: unaffected | PostgreSQL · cna |
Weaknesses
1- CWE-532 CWE-532 Insertion of Sensitive Information into Log File
References
2- GHSA-vj88-7qrf-48fg https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-vj88-7qrf-48fg
- psqlODBC changelog https://odbc.postgresql.org/changelog/
Provider assertions
1PostgreSQL · cna
Debug log records the database password under several spellings of the keyword, and the length of masked passwords
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6287ce5a8e3b137e47079edd2fd90ee33853589bfc6e4a7165eae9be939fbc45
- Ingested
- 29 Nov 2026, 18:18:35 UTC
- Source record
- Official CVE record