Skip to main content

psqlODBC CVE-2026-138405

| EUVDEUVD-2026-137808 MEDIUM
Insertion of Sensitive Information into Log File (CWE-532)
2026-11-29 PostgreSQL GHSA-2w9j-g3w9-gvvf
5.0
CVSS 3.1 · Vendor: PostgreSQL
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Admin enables psqlODBC Debug logging
  2. Exploit
    Connection uses password under unmasked keyword
  3. Execution
    Secret written to debug log in plaintext
  4. Impact
    Reader of shared log recovers password

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A09:2025 - Security Logging & Alerting Failures
ASVS 5.0
V16 - Security Logging and Error Handling Log data sanitization
Exploitation Conditions

Three conditions must all hold: (1) the non-default Debug log is enabled, which only an administrator can do via the Debug setting; (2) a password is supplied under a keyword the driver's masking misses - specifically ' PWD', 'PWD ', 'Passwd', 'sslpassword', or any keyword the driver does not recognize (including a misspelled one), whereas an exact 'PWD' or 'Password' is correctly masked; and (3) someone with read access later views the log, which in practice means a log attached to a bug report or sent to support. Limiting factors that reduce realistic risk: logging is off by default and requires administrator action to enable, exploitation requires local access to read the log file rather than a remote network path, and correctly-spelled standard keywords are not exposed. A secondary weakness is that even masked secrets are replaced one character at a time, leaking the exact length of the password and of each secret in pqopt.

Impact

This is a medium-severity information-disclosure issue (input CVSS 5.0, AV:L/AC:L/PR:L/UI:R, C:H only) whose real-world urgency is low despite the HIGH confidentiality impact. The signals align toward low priority rather than conflict: there is no KEV listing, no EPSS score was provided, and no exploit or PoC reference is present, so the status is no public exploit identified at time of analysis. The vendor-facing priority label is 'this_month' (not act_now/emergency), and no SSVC decision data was supplied. The local vector (AV:L) combined with heavy preconditions - debug logging must be deliberately enabled by an administrator, the log must then be read by someone, and the password must have been supplied under a non-standard keyword spelling - means exploitation is opportunistic and situational, not scalable. The most realistic exposure is not a remote attacker but inadvertent disclosure when an enabled debug log is attached to a bug report or sent to vendor support. Missing data to note: no EPSS, no KEV, no SSVC, and crucially no fixed version - the description states these masking faults remain in the latest release (18.00.0007), so defenders cannot resolve this by patching to the current version.

Exploit ScenarioDerived

An administrator enables the psqlODBC Debug log to troubleshoot a connection problem, and applications connect using a password supplied under a keyword such as 'sslpassword', 'Passwd', ' PWD', or a misspelled keyword the driver does not recognize. The plaintext password (and the length of every masked secret) is written to the log, and anyone who later reads that log - commonly when it is attached to a bug report or forwarded to support - recovers the credential. No public exploit code is required or identified; the flaw is passive disclosure once logging is on.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 29, 2026

psqlODBC through 18.00.0007 writes connection-string passwords into its debug log without masking them whenever the password is supplied under a keyword its redaction routine fails to match - ' PWD', 'PWD ', 'Passwd', 'sslpassword', or any keyword the driver does not recognise, including a misspelled one - while an exact 'PWD' or 'Password' is masked correctly. Even properly masked secrets are replaced one character at a time, so the log discloses the exact length of the password and of each secret in pqopt. Real-world exposure is constrained: the Debug log is off by default and only an administrator can enable it, and an attacker must be an authenticated local user who can read the resulting log file, which in practice is a log attached to a bug report or sent to support; no public exploit identified at time of analysis, and this medium-severity information-disclosure issue is separate from CVE-2026-136504 (addressed in 18.00.0007), whose masking faults remain unfixed in that release.

RemediationAI

No vendor-released patch identified at time of analysis: the advisory data states the masking faults remain in 18.00.0007 and that all versions up to and including 18.00.0007 are affected, so upgrading does not yet close this issue - track https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-vj88-7qrf-48fg and https://odbc.postgresql.org/changelog/ for a fixed release. Because the debug log is off by default, the primary control is to leave the Debug setting disabled and confirm it is off in every DSN and in the driver-wide registry/odbcinst configuration; the trade-off is that enabling it for troubleshooting re-exposes any connection string built with a missed keyword. If logging must be enabled, avoid supplying passwords under ' PWD', 'PWD ', 'Passwd', 'sslpassword' or any unrecognised or misspelled keyword and use exactly 'PWD' or 'Password' so the masking path applies - but note this still leaks the secret's length, so it is a reduction, not a fix. Treat any debug log as credential-bearing before it leaves the host: scrub connection strings from logs attached to bug reports or sent to support, and restrict read access to log files to administrators, at the cost of slower support turnaround and reduced diagnostic fidelity. Note that applying 18.00.0007 does fix the separate pre-masking disclosure tracked as CVE-2026-136504, so upgrading remains worthwhile even though it does not address the issues here.

Affected VersionsENISA

psqlODBC 0 ≤18.00.0007

Affected Packages

euvd psqlodbc no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

psqlODBC is the PostgreSQL ODBC driver, and the flaw is CWE-532 (insertion of sensitive information into a log file) in its connection-string redaction path rather than in the connection handling itself. When the driver's Debug setting is enabled, it emits the connection string to its debug log after masking the password; the masking logic only recognises keywords written exactly as 'PWD' or 'Password', so variants such as ' PWD' (leading space), 'PWD ' (trailing space), 'Passwd' and 'sslpassword' pass through verbatim. The same log line echoes the value of any keyword the driver does not recognise, so a password placed under a misspelled keyword is logged in clear. A secondary weakness is that masked secrets are substituted one character at a time, which preserves the length of the password and of every secret in pqopt - a metadata leak that can aid targeted guessing or confirm a guessed credential. Logging is off by default and is enabled only by an administrator through the Debug setting; per the assessed vector (AV:L/AC:L/PR:L/UI:R) the attacker needs local access and a user interaction on the part of whoever later reads or shares the file. The precise parsing edge cases that make each keyword variant evade the matcher are not described in the available sources beyond the keyword strings themselves. psqlODBC is identified by CPE cpe:2.3:a:postgresql:psqlodbc:*:*:*:*:*:*:*:*, covering all releases up to and including 18.00.0007.

Know when Psqlodbc gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (PostgreSQL) PRIMARY 5.0 MEDIUM
AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
vuln.today AI 5.0 MEDIUM

Disclosure requires local read access to a log an admin must enable (AV:L, PR:L, UI:R); plaintext credential exposure gives C:H with no integrity or availability impact.

3.1 AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
4.0 AV:L/AC:L/AT:N/PR:L/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (PostgreSQL).

CVSS VectorVendor: PostgreSQL

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Medium
PostgreSQL's official ODBC driver, common for DB connectivity but not universally deployed
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

25
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +25
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2026-136507 HIGH
8.1 Nov 25

psqlODBC through 18.00.0006 parses and rebuilds connection strings in several ways that let an attacker-influenced value

CVE-2026-136502 HIGH
8.1 Nov 25

SQL injection in psqlODBC up to and including 18.00.0006 lets remote unauthenticated attackers run SQL with the applicat

CVE-2026-136500 HIGH
8.1 Nov 25

SQL injection in psqlODBC through 18.00.0006 lets an attacker who controls a bound character parameter or a name passed

CVE-2026-136515 HIGH
7.5 Nov 25

Heap corruption in psqlODBC through 18.00.0006 can crash an application or corrupt its memory when it processes attacker

CVE-2026-136505 HIGH
7.5 Nov 25

Extreme sizes and counts handled without range checks in psqlODBC's driver core let 16-bit counters and 2 GiB-scale size

CVE-2026-136509 HIGH
7.5 Nov 25

Heap corruption and driver crashes in psqlODBC (all versions up to and including 18.00.0006) stem from the driver not ve

CVE-2026-136506 HIGH
7.5 Nov 25

SQL injection in psqlODBC through crafted database, schema, table, column, operator, cursor, or parameter identifiers ca

CVE-2026-136512 HIGH
7.5 Nov 25

A client-side memory-corruption flaw in the PostgreSQL ODBC driver (psqlODBC) through 18.00.0006 causes the driver to wr

CVE-2026-136503 HIGH
7.5 Nov 25

Memory-safety defects across several code paths in psqlODBC, the PostgreSQL ODBC driver, allow a hostile or compromised

CVE-2026-120064 HIGH
7.5 Nov 02

Out-of-bounds reads and writes in psqlODBC before 18.00.0006 arise when a host application forwards untrusted column num

CVE-2026-120062 HIGH
7.5 Nov 02

SQL injection in psqlODBC before 18.00.0006 allows an attacker who can influence a table or schema name passed by a host

CVE-2026-120061 HIGH
7.5 Nov 02

A stack-based buffer overflow (CWE-121) in the psqlODBC driver, the official PostgreSQL ODBC driver, lets attacker-influ

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy