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

Published Nov 29, 2026
·
Updated

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.

Affected Software

1 affected component
PostgreSQL psqlODBC<=18.00.0007

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Keep the Debug setting off to prevent connection strings and passwords from being written to the debug log.

    psqlODBC Debug = off

Event History

Nov 29, 2026
CVE Published
via MITRE·06:01 PM
Data Sourced
via MITRE·06:01 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is realistically exposed to this issue?

Exposure requires psqlODBC debug logging to have been enabled by an administrator, because it is off by default. The practical risk arises when someone else can read the resulting log, such as when a log is included in a bug report or sent to support.

2

What connection-string forms can disclose a password in the debug log?

Passwords can be logged unmasked when supplied using " PWD", "PWD ", "Passwd", or "sslpassword" rather than exactly "PWD" or "Password". A password supplied under an unrecognized or misspelled keyword can also appear in the log because the driver logs values for unrecognized keywords.

3

Does version 18.00.0007 fix this issue?

No. Version 18.00.0007 fixes separate logging paths involving the setup dialog Test button and Unicode connect functions, but the masking flaws described here remain present. Versions through and including 18.00.0007 are affected.

4

What information may still be exposed when password masking works?

The debug log can reveal the length of a masked password because masking occurs one character at a time. It can also reveal the length of each secret in pqopt.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203