CVE Professor
/
All CVEs
CVE-2026-138405

CVE-2026-138405 — PostgreSQL PsqlODBC — CWE-532

MEDIUM CVSS 5 NVD

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.

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.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
Attack Vector Local AV:L
Attack Complexity Low AC:L
Privileges Req. Low PR:L
User Interaction Required UI:R
Scope Unchanged S:U
Confidentiality High C:H
Integrity None I:N
Availability None A:N
AI Security Analysis & Remediation

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-138405
CVSS 5/10 · MEDIUM · 29.11.2026
CWE: CWE-532
Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 WHAT IS THIS VULNERABILITY?
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.
Affected: PostgreSQL psqlODBC

⚡ ATTACK VECTOR
Local/physical access (AV:L) · low-privilege account (PR:L) · user interaction required (UI:R) · low attack complexity (AC:L).

🌍 REAL WORLD IMPACT
All confidential data readable/stealable.

🛡️ REMEDIATION
→ Apply vendor security update for PostgreSQL psqlODBC.
→ Add WAF rule, create IDS alert for anomalous traffic.

⚠️ URGENCY
📋 Routine update cycle (30 days)

────────────────────────────────────────
[Automated Technical Vulnerability & CVSS Vector Analysis]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="PostgreSQL psqlODBC"
CVSS Score
5 / 10 · CVSS MEDIUM
Weakness Types (CWE)
CWE-532
Affected Products (1)
PostgreSQL:psqlODBC
References & Advisories (2)
Related CVEs
7.1
CVE-2026-144602
pgRouting through 4.0.3 contains a NULL pointer dereference vulnerability in pgr_turnRestrictedPath that allow
7.1
CVE-2026-144683
plv8 through 3.2.5 contains an unbounded stack allocation vulnerability in GetJsonbValue that allows low-privi
5.9
CVE-2026-142650
Laravel's PostgreSQL Query Grammar does not escape embedded single quotes in JSON path attributes when compili
7.4
CVE-2026-115978
Insertion of sensitive information into a log file in the push publishing receiver (for example POST /api/bund
7.4
CVE-2026-115979
Insertion of sensitive information into a log file in the push publishing receiver in dotCMS versions prior to
7.4
CVE-2026-115980
Three issues in dotCMS versions prior to 26.10.22-01, and 25.07.10 LTS prior to v23, were reported together. (
6.8
CVE-2026-144950
mcp-proxy from 0.10.0 before 0.13.3 contains an information exposure vulnerability that logs credentials and M