Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Databases

CVE-2026-138405 — PostgreSQL psqlODBC

Medium · CVSS 5.0 First seen November 29, 2026

One of 3 PostgreSQL psqlODBC vulnerabilities published together by NVD: our article covers all of them.

DatabasesVulnerabilities

Summary

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.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

Medium · 5.0 CVSS 3.1 base score from the CNA

An attacker with a normal user account can exploit this with local access if a user is tricked into an action.

Attack from
local access (a logged-in user, or a malicious file opened on the device)
Attack complexity
low (no special conditions)
Login needed
yes, a normal user account
User action needed
yes, someone must click, open or visit something
Scope
stays within the vulnerable component
Impact
high on confidentiality, none on integrity and availability

Vector CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N

Weakness

  • CWE-532: Insertion of Sensitive Information into Log File

Affected and fixed versions

ProductAffected versionsFixed in
PostgreSQL psqlODBC≤ 18.00.0007—

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Vendor advisories

Other references

Details from NVD (public domain).

Affected

  • PostgreSQL psqlODBC

What to do

  • Follow the vendor advisory and the references below for fixed versions and workarounds.

Frequently asked questions

What is CVE-2026-138405?

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. Weakness type: Insertion of Sensitive Information into Log File (CWE-532).

How severe is CVE-2026-138405?

CVE-2026-138405 has a CVSS 3.1 base score of 5.0 (medium), from the CNA. An attacker with a normal user account can exploit this with local access if a user is tricked into an action.

Is CVE-2026-138405 being exploited?

Not as far as is known: CVE-2026-138405 is not in CISA's Known Exploited Vulnerabilities catalog as of November 29, 2026.

Which versions are affected by CVE-2026-138405?

PostgreSQL psqlODBC ≤ 18.00.0007.

How do I fix CVE-2026-138405?

Apply the update or mitigation in the vendor's advisory, linked on this page under Vendor advisories.

Timeline & sources

References