Technical impact
On Unix-like systems, psqlODBC creates log files in "/tmp" by default, using the program name, user name, and process ID, and it opens them with the default world-readable permissions. The driver also follows symbolic links while opening the log file. Because of this behavior a local user can read query text and data logged by another user. Additionally, a local attacker can create a symbolic link at the predictable log path that points to a file of their choosing, causing the vulnerable application to append log entries to that file under the victim’s privileges.
Affected Systems
The vulnerability affects the PostgreSQL psqlODBC driver on Unix-like operating systems in all releases earlier than 18.00.0006. The issue arises only when logging is enabled and the default log location (/tmp) is used. System administrators should review any production instances of psqlODBC older than this version.
Risk and Exploitability
The CVSS score of 5.3 classifies the vulnerability as moderate severity. EPSS data is unavailable and the flaw is not listed in the CISA KEV catalog. A local attacker who can write to the system’s temporary directory could exploit the predictable log location and symlink handling to read or tamper with logs from other users, potentially leaking sensitive query data or influencing audit trails. Although the exploit requires local privileges, the impact on confidentiality and integrity is significant, especially in environments where debug logging is enabled.