CVE-2026-120066

psqlODBC log files are created with default permissions at a predictable path and follow symbolic links

Published Nov 2, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
On Unix-like systems, when logging is enabled, psqlODBC creates its log files in /tmp by default, named from the program name, user name, and process ID, with the default permissions, typically world-readable, and follows symbolic links when opening them. A local user can read query text and data from another user's logs, and can place a symbolic link at the predictable path so that the driver appends log data to a file of the attacker's choosing with the victim's privileges. Versions before psqlODBC 18.00.0006 are affected.

Analysis

AI-generated

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.

Remediation

Vendor Solution

Upgrade to psqlODBC 18.00.0006 or later. On Unix-like systems, log files are opened with mode 0600 and O_NOFOLLOW, and an existing log file is used only if it is a regular file owned by the user running the application.


Vendor Workaround

Leave Debug and CommLog disabled in production. If logging is needed, set Logdir in the driver's section of odbcinst.ini (PostgreSQL Unicode or PostgreSQL ANSI) to a directory writable only by the user running the application.


OpenCVE Recommended Actions

  • Upgrade the psqlODBC driver to version 18.00.0006 or later, which opens log files with mode 0600 and prevents following symbolic links.
  • If a rapid upgrade is not feasible, disable Debug and CommLog options in production settings to avoid generating logs that can be exploited.
  • When logging must remain active, create a dedicated log directory that is owned and writable only by the user running the application, then configure the Logdir parameter in odbcinst.ini to point to that directory.

Generated by OpenCVE AI on November 3, 2026 at 01:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Postgresql
Postgresql psqlodbc
Vendors & Products Postgresql
Postgresql psqlodbc
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description On Unix-like systems, when logging is enabled, psqlODBC creates its log files in /tmp by default, named from the program name, user name, and process ID, with the default permissions, typically world-readable, and follows symbolic links when opening them. A local user can read query text and data from another user's logs, and can place a symbolic link at the predictable path so that the driver appends log data to a file of the attacker's choosing with the victim's privileges. Versions before psqlODBC 18.00.0006 are affected.
Title psqlODBC log files are created with default permissions at a predictable path and follow symbolic links
Weaknesses CWE-59
CWE-732
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N'}

Weaknesses
  • CWE-378

    Creation of Temporary File With Insecure Permissions

  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')

  • CWE-732

    Incorrect Permission Assignment for Critical Resource

Sources

Status
PUBLISHED
Assigner
PostgreSQL
Published
Updated
Nov 2, 2026, 7:37 PM
Reserved
Oct 30, 2026, 7:25 PM
Status
Awaiting Analysis
Published
Nov 2, 2026, 7:18 PM
Modified
Nov 2, 2026, 8:17 PM
Severity
Moderate
Public date
Nov 2, 2026, 7:09 PM