CVE-2026-120066psqlODBC log files are created with default permissions at a predictable path and follow…
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.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | psqlodbc | Fix pending | UBUNTU-CVE-2026-120066 | |
| Ubuntu 26.04 | psqlodbc | Under investigation | UBUNTU-CVE-2026-120066 | |
| Ubuntu 24.04 | psqlodbc | Under investigation | UBUNTU-CVE-2026-120066 | |
| Ubuntu 22.04 | psqlodbc | Under investigation | UBUNTU-CVE-2026-120066 | |
| Ubuntu 20.04 | psqlodbc | Fix pending | UBUNTU-CVE-2026-120066 | |
| Ubuntu 18.04 | psqlodbc | Fix pending | UBUNTU-CVE-2026-120066 | |
| Ubuntu 16.04 | psqlodbc | Fix pending | UBUNTU-CVE-2026-120066 | |
| Debian 14 | psqlodbc | Fixed | 1:18.00.0006-1 | DEBIAN-CVE-2026-120066 |
| Debian 13 | psqlodbc | Fix pending | DEBIAN-CVE-2026-120066 | |
| Debian 12 | psqlodbc | Fix pending | DEBIAN-CVE-2026-120066 | |
| Red Hat Enterprise Linux 10 | postgresql-odbc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | postgresql-odbc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql-odbc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql-odbc-tests | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-odbc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | postgresql-odbc | Will not fix Out of support scope |
What the vendor says
As published in the CVE record by PostgreSQL, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- PostgreSQL psqlODBC: affected: before 18.00.0006; fixed in
18.00.0006
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.
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.
Vendor advisories:
- https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-wj7r-6pj3-62g8 (vendor-advisory)
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.