Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain local user account on shared host
-
DeliveryPlant hard link or FIFO at predictable PID-based log path
-
ExploitVictim runs app with Debug/CommLog enabled
-
ExecutionDriver writes log to attacker-controlled target
-
ImpactRead exposed SQL and connection credentials or corrupt victim file
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Symlink resolution safety
|
| Exploitation Conditions | Debug or CommLog logging must be enabled in psqlODBC - these are off by default and only an administrator turns them on - and the attacker must have a local user account on the same host. On Unix-like systems, exploitation requires pre-placing a hard link (to a file the victim owns) or a FIFO at the shared log path, which means predicting the PID-based file name in the world-writable log directory (default /tmp). On Windows, the exposure arises when the log file is written to C:\ (or the MSDTC log in C:\ or C:\pgdtclog) by a service or elevated process so it inherits that directory's default/permissive ACLs, allowing other local users to read (and, in a default-permission directory under C:\, modify) it; a file an attacker has already created at the log path is used as-is. Limiting factors: non-default logging configuration, local-only access, a required race on the predictable file name (Unix), and the victim actually running the logging-enabled application. |
| Impact | Signals point to a genuine but second-tier issue. The CVSS 3.1 vector (AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L, base 6.3 Medium) describes high confidentiality/integrity impact but stacks several barriers: local attack vector, high attack complexity, a low-privileged local account, and required victim interaction. Exploitation is further gated by a non-default precondition - Debug or CommLog must be enabled, which only an administrator does. The vuln.today decision label is 'this_month' (not act_now/emergency), consistent with managed rather than urgent priority. No EPSS score, no CISA KEV listing, and no PoC reference are present in the input, so there is no public exploit identified at time of analysis and no probabilistic exploitation signal to weigh - EPSS is simply missing, not low. Net: the C:H/I:H impacts look alarming in isolation, but AV:L + AC:H + PR:L + the admin-enabled-logging precondition make this a real-but-contained local, multi-tenant/shared-host risk rather than a broadly exploitable priority. Treat as routine patching for shared hosts where psqlODBC logging may be turned on. |
| Exploit ScenarioDerived | On a shared Unix host, a local unprivileged user pre-creates a hard link (or a FIFO) at the predictable /tmp log path matching the victim process's PID; when the victim runs an application that uses psqlODBC with Debug/CommLog enabled, the driver appends sensitive SQL text, data, and connection details into the attacker-chosen target file (or hangs on the FIFO). On Windows, logs written to C:\ or C:\pgdtclog by an elevated service inherit that directory's permissive ACLs, letting any local user read the captured credentials and queries. No public exploit identified at time of analysis; the local vector and high attack complexity limit practical reach. |
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, when Debug or CommLog logging is enabled, writes SQL text, result data and connection details to predictably named, PID-suffixed log files in shared locations - /tmp by default on Unix-like systems and C:\ on Windows. On Unix, the vendor's earlier symlink fix (18.00.0006) checks that the log path is a regular file owned by the calling user but not whether it has other hard links, so a local user can hard-link a victim-owned file into the log path and have the driver append to it; a FIFO at the log path (not covered by the earlier fix) instead blocks the application until someone reads from it. On Windows no such checks exist, so a log created in C:\ by a service or elevated process inherits that directory's permissive ACLs and can be read - and in a default-permission directory created under C:\ also modified - by other local users, with an attacker-created file at the log path used as-is; the MSDTC log in C:\ or C:\pgdtclog is handled the same way. Exploitation requires non-default logging enabled by an administrator, a local account on the same host, and on Unix a race against the predictable PID-based filename; no public exploit was identified at time of analysis.
RemediationAI
No vendor-released fixed version is identified in the data available at time of analysis; 18.00.0007 and all earlier releases are affected, so track the vendor advisory at https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-g696-gg8r-7j45 and the changelog at https://odbc.postgresql.org/changelog/ for the patched release and upgrade as soon as it is published. Until then, the documented limiting control is to keep the Debug and CommLog options disabled, which is their default state; only an administrator can enable them, so audit DSNs and connection strings for Driver={PostgreSQL Unicode} entries carrying Debug=1 or CommLog=1 and turn them off, accepting the loss of driver-level SQL tracing and connection diagnostics on those hosts. Prioritise removing logging where psqlODBC runs on multi-user Unix hosts with a /tmp log directory or on Windows under a service or elevated account writing to C:\ or C:\pgdtclog, since those are the configurations where the inherited permissions and shared path expose log contents to other local users.
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
The root cause is CWE-59, improper link resolution before file access. The driver builds its Debug/CommLog filename from a fixed prefix plus the process ID inside a shared, world-writable directory, then opens the path for append without verifying the file's link count or object type on Windows, and without covering hard links or FIFOs on Unix. The prior fix for CVE-2026-120066 in 18.00.0006 hardened only the Unix path: it refused a symbolic link, and accepted an existing file only if it was a regular file owned by the user running the application. That leaves two gaps - the absence of an st_nlink check allows another local user to place a hard link to a victim-owned file at the log path (the link passes the symlink and ownership checks because the underlying inode is the victim's regular file), and a FIFO at the log path was never handled, so open() blocks until a reader appears. The Windows code path received none of these checks, so the security of the log rests entirely on the inherited ACL of the containing directory (C:\ or C:\pgdtclog for the MSDTC log), which is permissive by default. The assessed vector CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L reflects local access, high attack complexity from the filename race, low privileges, required user interaction, and high confidentiality and integrity impact confined to the victim's own data. Debug and CommLog are off by default and an administrator must turn them on, which limits the population of exposed installations.
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:R/S:U/C:H/I:H/A:L
Local co-tenant attacker (AV:L, PR:L) must win a predictable-name link/FIFO race and rely on admin-enabled, non-default logging (AC:H) while the victim runs the app (UI:R); logs expose data (C:H), hard links corrupt victim files (I:H), FIFO hangs the app (A:L).
Primary rating from Vendor (PostgreSQL).
CVSS VectorVendor: PostgreSQL
DescriptionCVE.org
With Debug or CommLog on, psqlODBC writes its log files to a shared directory under predictable names. By default that is /tmp on Unix-like systems and C:\ on Windows, and each file name holds the process ID. The logs hold SQL text, data and connection details.
On Unix-like systems, the fix for CVE-2026-120066 in 18.00.0006 made the driver refuse a symbolic link at the log path. It used an existing file only if it was a regular file owned by the user running the application. It did not check whether the file had other hard links. So another local user could create a hard link at the log path to a file the victim owns. The link passed every check, and the driver appended its log to the victim's file. A FIFO at the log path is a second case, which CVE-2026-120066 did not cover: opening it blocked the application until another process read from it.
On Windows, the fix for CVE-2026-120066 did not apply, and the driver opened the log file without any of these checks. A log file created in C:\ by a service or an elevated process got that directory's permissions, which let other local users read it. In a log directory created under C:\ with default permissions, they could also modify it. A file that another user had already created at the log path was used as it was. The MSDTC log in C:\ or C:\pgdtclog was opened the same way.
Debug and CommLog are off by default, and only an administrator turns them on.
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-137807
GHSA-5rwr-cvcx-g7f2
NVD
CVE.org
EPSS
VulDB
Exploit-DB