---
id: "CVE-2026-120066"
kind: "vulnerability"
aliases: ["CVE-2026-120066"]
title: "psqlODBC: default /tmp log files leak queries and enable symlink attacks"
severity: "medium"
cvss: 5.3
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["linux", "multi-user-hosts", "package", "postgresql", "psqlodbc", "unix"]
not_affected_if: ["logging-disabled", "single-user-host", "windows"]
published_at: "2026-11-02T19:18:03+00:00"
first_seen_at: "2026-11-02T19:24:40+00:00"
updated_at: "2026-11-02T19:26:53+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-120066", "first_seen_at": "2026-11-02T19:24:40+00:00"}]
---

# psqlODBC: default /tmp log files leak queries and enable symlink attacks

When logging is enabled on Unix-like systems, psqlODBC writes logs to a predictable file in /tmp with default, often world-readable permissions, and follows symbolic links. A local user can read another user's query text and data, or redirect log writes to a file of their choice with the victim's privileges.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed psqlODBC version; `18.00.0006` or later is not affected per the description.
- Check whether logging is enabled in the driver configuration (unknown exact setting name from sources).
- Look for psqlODBC log files in `/tmp` owned by other users.

## Fix

- psqlODBC: move to `18.00.0006` or later.

## Timeline

- 2026-11-02T19:24:40+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-120066

## Documents

- [advisory] Vendor advisory: github.com https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-wj7r-6pj3-62g8

## From the sources

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.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
