Masking gaps in psqlODBC debug log expose database passwords
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-532.
Summary
PostgreSQL psqlODBC up to and including 18.00.0007 logs database passwords in its debug log when they are given under keywords other than exactly PWD or Password, such as Passwd or sslpassword. Values under unrecognised keywords are also logged, and masked secrets reveal their length. CWE-532 applies. Someone who reads the debug log, such as a log attached to a bug report, sees the password, and the debug log is off by default and enabled only by an administrator.
Written with Claude Haiku 5.5 from the sources below · 2026-11-29
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| PostgreSQL | psqlODBC | up to 18.00.0007 | — | No fix listed | CNA |
- psqlODBC VendorPostgreSQL Affected up to 18.00.0007 Fixed in — No fix listed CNA
Remediation
The sources list no fixed version for psqlODBC.
Written with Claude Haiku 5.5 from the sources below · 2026-11-29
Timeline
- 2026-11-29 Threatist record created from CVE-2026-138405
- 2026-11-29 Alias added: GHSA-2w9j-g3w9-gvvf
References
Advisory 1
Other 1
More PostgreSQL vulnerabilities
- TI-2024-01491 pgjdbc SQL Injection via line comment generation CVSS 3.1CRITICAL 10.0
- TI-2019-06651 In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and… CVSS 3.0HIGH 7.2
- TI-2017-05187 Improper authentication in postgresql CVSS 3.0CRITICAL 9.8
- TI-2022-06097 Unchecked Class Instantiation when providing Plugin Classes CVSS 3.1CRITICAL 9.8
- TI-2026-96877 SQL injection in pgjdbc simple query mode parameter quoting CVSS 3.1HIGH 8.1
- TI-2026-96876 SQL injection in pgjdbc through misparsed quoted literals CVSS 3.1HIGH 8.1
Sources
- CVE-2026-138405 · CVE Program
- CVE-2026-138405 · NVD
- FIRST EPSS
- GHSA-2w9j-g3w9-gvvf · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences