psqlODBC
CVE-2026-136513
LOW
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local low-privileged account
-
DeliveryControl directory on driver's fallback log path
-
ExploitVictim runs app with Debug/CommLog enabled
-
ExecutionUnexpanded ~ resolved relative to process CWD
-
ImpactDriver creates or blocks victim's log files in attacker-chosen location
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Symlink resolution safety
|
| Exploitation Conditions | Exploitation requires ALL of the following: (1) a local, authenticated low-privileged user account on the same host as the victim; (2) the victim's psqlODBC usage must have Debug or CommLog logging explicitly enabled (a non-default diagnostic setting); (3) the primary log directory must be unusable so the driver falls back to the home-directory path; and (4) the attacker must control a directory lying on the path that the unexpanded ~ resolves to relative to the victim process's current working directory. These conditions - especially the required non-default logging configuration and the need to control a specific directory on the resolved path - plus high attack complexity (AC:H) and local-only access substantially limit real-world exploitability. The resulting impact is limited to creating the victim's log files in directories the victim can already write to, or blocking the victim's process in open(); it does not grant code execution or cross-privilege data theft. |
| Impact | This is a low-severity, locally-exploitable issue that the input correctly prioritizes as 'monitor' - it is not an urgent, widely-weaponizable vulnerability. The CVSS 3.1 vector (AV:L/AC:H/PR:L/UI:N) confirms it requires local access, an already-authenticated low-privileged user, and high attack complexity, which is consistent with the description: the attacker must be a co-located local user who controls a directory lying on the driver's fallback path. No EPSS score and no KEV status are provided; there is no CISA KEV listing and no public exploit identified at time of analysis (the only 'advisory' reference is the GHSA security advisory, not working exploit code). All signals agree this is low real-world risk rather than a high-CVSS-but-low-real-risk mismatch - the CVSS score itself is modest (3.6). The one note of friction: the input tags this 'Information Disclosure,' but the described mechanism is link/path-following (CWE-59) that lets an attacker redirect or block creation of the victim's mylog_*.log / psqlodbc_*.log files, which reads more as integrity/availability impact than confidentiality - treat the 'information disclosure' framing with caution. Exploitation also depends on a non-default condition (Debug or CommLog logging enabled) that further narrows exposure. |
| Exploit ScenarioDerived | On a shared multi-user host, a low-privileged local attacker who controls a directory on the path the psqlODBC driver uses for its home-directory log fallback pre-creates or symlinks entries so that when a victim runs an application with Debug or CommLog enabled, the driver writes the victim's mylog_*.log and psqlodbc_*.log files into an attacker-influenced, victim-writable location - or leaves the victim's process hung inside open(). No public exploit code is identified; attack complexity is high (AC:H) and it requires local, authenticated access (PR:L). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 25, 2026
psqlODBC, the PostgreSQL ODBC driver, resolves the fallback log location as a literal unexpanded '~' path relative to the process's current working directory when Debug or CommLog logging is enabled and the configured log directory is unusable. Any version up to and including 18.00.0006 is affected, and a local authenticated low-privileged user who controls a directory along that resolved path can cause the victim's mylog_*.log and psqlodbc_*.log files to be created in arbitrary directories writable by the victim, or can leave the victim's process blocked in open(). Exploitation requires the non-default logging configuration, a broken primary log directory and attacker control of a specific path component, so real-world exposure is narrow; no public exploit code or active exploitation is identified at time of analysis, and the input decision is 'monitor'.
RemediationAI
The available data does not name an explicit fixed release beyond stating that the change completes the fix for CVE-2026-120066 in 18.00.0006; check the vendor advisory (https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-g5jq-mpgp-mq7q) and the changelog (https://odbc.postgresql.org/changelog/) for the release that carries the corrected path handling and upgrade to that build. Because the vulnerable code path is only reached when Debug or CommLog logging is enabled and the primary log directory is unusable, keeping diagnostic logging disabled in normal operation and ensuring the configured log directory exists and is writable removes the fallback trigger; the trade-off is the loss of driver diagnostics needed for troubleshooting. Where logging must stay on, configure an absolute, fully specified log directory that the victim process can write to and that no other local user can influence, and be aware that this only avoids the faulty '~' fallback rather than repairing it - patching remains the only complete fix per the vendor.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The issue is a classic CWE-59 link-following / path-resolution flaw in how psqlODBC handles its diagnostic log destination. When Debug or CommLog is switched on, the driver normally writes mylog_*.log and psqlodbc_*.log files to a configured log directory; if that directory cannot be used, it falls back to a per-user location derived from the home directory. The bug is that this fallback path was written with an unexpanded '~' rather than the resolved home directory, so the token is interpreted by the filesystem relative to the victim process's current working directory. A local attacker who can create or control a directory on that resolved path can therefore steer the victim's log output into any directory the victim can write to, or arrange for open() to block, tying up the victim's process. This is a follow-up to CVE-2026-120066 and is described as completing that fix in 18.00.0006. The published CVSS 3.1 vector is AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N (3.6, local, high complexity, authenticated low-privileged user, no user interaction), while the independent assessment adjusts the impact to C:N/I:L/A:L, reflecting file-placement integrity impact and a possible denial-of-service via blocked open() rather than meaningful data disclosure or privilege gain.
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:H/PR:L/UI:N/S:U/C:L/I:L/A:N
Local authenticated user (AV:L/PR:L) must control a path directory and the victim must enable logging (AC:H); impact is limited file redirection/creation (I:L) and process blocking (A:L), with no real attacker-side confidentiality gain (C:N).
Primary rating from Vendor (PostgreSQL).
CVSS VectorVendor: PostgreSQL
DescriptionCVE.org
When Debug or CommLog is enabled and the log directory cannot be used, psqlODBC falls back to a directory under the user's home directory. It wrote that path with an unexpanded ~, which is resolved relative to the process's current directory. Another local user who controls a directory on that path can make the driver create the victim's mylog_*.log and psqlodbc_*.log files in any directory the victim can write to, or leave the victim's process blocked in open().
This completes the fix for CVE-2026-120066 in 18.00.0006.
Versions up to and including psqlODBC 18.00.0006 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.
Affected Products (CPE)CVE.org
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
NVD
CVE.org
EPSS
GitHub
Exploit-DB