---
id: CVE-2026-120066
title: >-
  psqlODBC log files are created with default permissions at a predictable path
  and follow symbolic links
summary: >-
  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 …
severity: medium
cvss: 5.3
cvssVector: 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N'
cvssSource: cna
cwe:
  - CWE-732
  - CWE-59
vendor: PostgreSQL
product: psqlODBC
affected:
  - psqlODBC < 18.00.0006
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-02T19:37:21.337272Z'
published: '2026-11-02'
updated: '2026-11-02'
sourceUpdated: '2026-11-02T19:37:32.927Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-120066'
references:
  - url: >-
      https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-wj7r-6pj3-62g8
tags:
  - cve.org
epss: 0.00114
epssPercentile: 0.01463
ingestedAt: '2026-11-05T19:30:42.803Z'
---

## Overview

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.

## Affected

- `psqlODBC < 18.00.0006`

## Remediation

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.

### Workarounds

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.
