Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAdmin enables psqlODBC Debug logging
-
ExploitConnection uses password under unmasked keyword
-
ExecutionSecret written to debug log in plaintext
-
ImpactReader 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
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.
Primary rating from Vendor (PostgreSQL).
CVSS VectorVendor: PostgreSQL
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
psqlODBC through 18.00.0006 parses and rebuilds connection strings in several ways that let an attacker-influenced value
SQL injection in psqlODBC up to and including 18.00.0006 lets remote unauthenticated attackers run SQL with the applicat
SQL injection in psqlODBC through 18.00.0006 lets an attacker who controls a bound character parameter or a name passed
Heap corruption in psqlODBC through 18.00.0006 can crash an application or corrupt its memory when it processes attacker
Extreme sizes and counts handled without range checks in psqlODBC's driver core let 16-bit counters and 2 GiB-scale size
Heap corruption and driver crashes in psqlODBC (all versions up to and including 18.00.0006) stem from the driver not ve
SQL injection in psqlODBC through crafted database, schema, table, column, operator, cursor, or parameter identifiers ca
A client-side memory-corruption flaw in the PostgreSQL ODBC driver (psqlODBC) through 18.00.0006 causes the driver to wr
Memory-safety defects across several code paths in psqlODBC, the PostgreSQL ODBC driver, allow a hostile or compromised
Out-of-bounds reads and writes in psqlODBC before 18.00.0006 arise when a host application forwards untrusted column num
SQL injection in psqlODBC before 18.00.0006 allows an attacker who can influence a table or schema name passed by a host
A stack-based buffer overflow (CWE-121) in the psqlODBC driver, the official PostgreSQL ODBC driver, lets attacker-influ
EUVD-2026-137808
GHSA-2w9j-g3w9-gvvf
NVD
CVE.org
EPSS
VulDB
Exploit-DB