CVE-2026-120066

Description

A flaw was found in postgresql-odbc. This issue leads to information disclosure and potential unauthorized file modification due to insecure log file creation in shared temporary directories. When logging is enabled on Unix-like systems, the driver creates world-readable log files with predictable names and follows symbolic links. A local attacker can exploit this flaw to view sensitive database query data from other users or place symbolic links to append log data to arbitrary files with the privileges of the victim.

Statement

Red Hat rates this vulnerability as having a Moderate impact because exploitation requires local system access and logging is not enabled by default in standard configurations. Under typical Red Hat Enterprise Linux deployments, diagnostic tracing in the PostgreSQL ODBC driver must be explicitly activated by an administrator or user. Furthermore, standard RHEL kernel protections against symlink traversal in sticky world-writable directories limit arbitrary file tampering, confining the residual risk to potential information disclosure of queries when debug tracing is turned on.

Mitigation

Disable driver logging in ODBC configurations.

1. Ensure that logging options are disabled in the system-wide `/etc/odbc.ini` or user-specific `~/.odbc.ini` configuration files by setting:

ini
CommLog = 0
Debug = 0
Alternatively, ensure connection strings passed by client applications do not enable `CommLog` or `Debug`.

2. Caveat: Disabling these parameters prevents generating diagnostic traces and communication logs, which may hinder troubleshooting PostgreSQL database connection issues.

3. Warning: Applications holding active ODBC database connections must be restarted for configuration changes to take effect.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score5.3N/A5.3
Attack VectorLocalN/ALocal
Attack ComplexityHighN/AHigh
Privileges RequiredLowN/ALow
User InteractionNoneN/ANone
ScopeUnchangedN/AUnchanged
ConfidentialityHighN/AHigh
Integrity ImpactLowN/ALow
Availability ImpactNoneN/ANone

Vector

Red Hat: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N

cve.org: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N

Understanding the Weakness (CWE)

Confidentiality,Integrity,Access Control

Technical Impact: Read Files or Directories; Modify Files or Directories; Bypass Protection Mechanism

An attacker may be able to traverse the file system to unintended locations and read or overwrite the contents of unexpected files. If the files are used for a security mechanism then an attacker may be able to bypass the mechanism.

Other

Technical Impact: Execute Unauthorized Code or Commands

Windows simple shortcuts, sometimes referred to as soft links, can be exploited remotely since a ".LNK" file can be uploaded like a normal file. This can enable remote execution.

Frequently Asked Questions

Want to get errata notifications? Sign up here.