Technical impact
The psqlODBC driver writes SQL queries, data, and connection details to log files in a shared directory whose name is derived from the process ID. By default the directory is /tmp on Unix-like systems and C: on Windows. The driver historically accepted symbolic and hard links at the log path. The corrected version rejects symbolic links but still permits hard links and does not detect whether the target file has other hard links. Consequently another local user can create a hard link at the log path that points to a file owned by the victim, causing the driver to append its log data to that file. A FIFO (named pipe) can also be placed at the log path to stall the driver, a scenario not covered in the fix. On Windows the pre‑fix code opens the log file without any ownership or link checks, allowing a local user to read or modify logs created by an elevated service or to write into an existing file at the log path. Debug and CommLog are off by default but enable administrators to activate log creation.
Affected Systems
Affected systems are PostgreSQL clients using the psqlODBC driver, versions up to and including 18.00.0007. The flaw is present on Unix-like platforms where the driver writes to /tmp and on Windows where logs are written to C: or subdirectories such as C:pgdtclog. Debug and CommLog logging must be enabled for the vulnerability to be exploitable, a setting that is typically only turned on by administrators. Any local user who can create files, hard links, or FIFOs in the shared log directory can use this flaw to read or modify the victim’s files.
Risk and Exploitability
The CVSS score of 6.3 classifies the issue as moderate severity. EPSS information is not available and the vulnerability is not listed in the CISA KEV catalog, indicating no widely reported exploitation. However, local privilege users with access to the log directory can create hard links or FIFOs and read or tamper with the victim’s data, so the risk remains significant for systems that enable debugging or logging in the default location.