
Catalogo CVE
CVE-2026-138404
psqlodbc affected and fixed versions
With Debug or CommLog on, psqlODBC writes its log files to a shared directory under predictable names. By default that is /tmp on Unix-like systems and C:\ on Windows, and each file name holds the process ID. The logs hold SQL text, data and connection details. On Unix-like systems, the fix for CVE-2026-120066 in 18.00.0006 made the driver refuse a symbolic link at the log path. It used an existing file only if it was a regular file owned by the user running the application. It did not check whether the file had other hard links. So another local user could create a hard link at the log path to a file the victim owns. The link passed every check, and the driver appended its log to the victim's file. A FIFO at the log path is a second case, which CVE-2026-120066 did not cover: opening it blocked the application until another process read from it. On Windows, the fix for CVE-2026-120066 did not apply, and the driver opened the log file without any of these checks. A log file created in C:\ by a service or an elevated process got that directory's permissions, which let other local users read it. In a log directory created under C:\ with default permissions, they could also modify it. A file that another user had already created at the log path was used as it was. The MSDTC log in C:\ or C:\pgdtclog was opened the same way. Debug and CommLog are off by default, and only an administrator turns them on. Versions up to and including psqlODBC 18.00.0007 are affected.
- Gravità
- Medium · CVSS 3.1 · 6.3
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.18% · Dec 4, 2026
Projects and upstream resources
Reported versions and fixes
Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| Debiansid | psqlodbc | 1:18.00.0008-1 | FixedDistribution-reported fixed boundary | [CVE-2026-138404] |
| Debianforky | psqlodbc | 1:18.00.0008-1 | FixedDistribution-reported fixed boundary | [CVE-2026-138404] |
More observations (21)
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| Debianbookworm | psqlodbc | Not reported | AffectedDistribution reports no fix | [CVE-2026-138404] |
| Debianbookworm | psqlodbc | 1:13.02.0000-2 | Affected | [CVE-2026-138404] |
| Debiantrixie | psqlodbc | Not reported | AffectedDistribution reports no fix | [CVE-2026-138404] |
| Debiantrixie | psqlodbc | 1:17.00.0004-2 | Affected | [CVE-2026-138404] |
| Ubuntu16.04 | psqlodbc | 1:09.03.0300-1 | Affected | [UBUNTU-CVE-2026-138404] |
| Ubuntu18.04 | psqlodbc | 1:09.06.0410-1 | Affected | [UBUNTU-CVE-2026-138404] |
| Ubuntu18.04 | psqlodbc | 1:10.00.0000-1 | Affected | [UBUNTU-CVE-2026-138404] |
| Ubuntu18.04 | psqlodbc | 1:10.01.0000-1 | Affected | [UBUNTU-CVE-2026-138404] |
| Ubuntu20.04 | psqlodbc | 1:11.00.0000-1 | Affected | [UBUNTU-CVE-2026-138404] |
| Ubuntu20.04 | psqlodbc | 1:12.00.0000-1 | Affected | [UBUNTU-CVE-2026-138404] |
| Ubuntu20.04 | psqlodbc | 1:12.01.0000-1 | Affected | [UBUNTU-CVE-2026-138404] |
| Ubuntu22.04 | psqlodbc | 1:13.00.0000-1 | Affected | [UBUNTU-CVE-2026-138404] |
| Ubuntu22.04 | psqlodbc | 1:13.02.0000-1 | Affected | [UBUNTU-CVE-2026-138404] |
| Ubuntu22.04 | psqlodbc | 1:13.02.0000-2 | Affected | [UBUNTU-CVE-2026-138404] |
| Ubuntu24.04 | psqlodbc | 1:15.00.0000-1 | Affected | [UBUNTU-CVE-2026-138404] |
| Ubuntu24.04 | psqlodbc | 1:16.00.0000-1 | Affected | [UBUNTU-CVE-2026-138404] |
| Ubuntu26.04 | psqlodbc | 1:17.00.0006-2 | Affected | [UBUNTU-CVE-2026-138404] |
| Ubuntu26.04 | psqlodbc | 1:17.00.0007-1 | Affected | [UBUNTU-CVE-2026-138404] |
| Ubuntu26.10 | psqlodbc | 1:17.00.0007-1 | Affected | [UBUNTU-CVE-2026-138404] |
| Ubuntu26.10 | psqlodbc | 1:18.00.0001-1 | Affected | [UBUNTU-CVE-2026-138404] |
| Ubuntu26.10 | psqlodbc | 1:18.00.0002-1 | Affected | [UBUNTU-CVE-2026-138404] |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [odbc-postgresql]Interessata
Pacchetto sorgente: [psqlodbc]
Dettagli (2)
1:13.02.0000-2+b1· amd64 · bookwormInteressata
dsa · psqlodbc · debian · bookworm; pypi · psqlodbc · debian · 12
1:13.02.0000-2+b1· arm64 · bookwormInteressata
dsa · psqlodbc · debian · bookworm; pypi · psqlodbc · debian · 12
[Debian 13 (Trixie)]
- [odbc-postgresql]Interessata
Pacchetto sorgente: [psqlodbc]
Dettagli (2)
1:17.00.0004-2· amd64 · trixieInteressata
pypi · psqlodbc · debian · 13
1:17.00.0004-2· arm64 · trixieInteressata
pypi · psqlodbc · debian · 13
Osservato:
Riferimenti
- [https://ftp.suse.com/pub/projects/security/csaf-vex/2026/cve-2026-138404.json]
- [https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-g696-gg8r-7j45]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-138404]
- [https://odbc.postgresql.org/changelog/]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-138404]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-138404]
- [https://security-tracker.debian.org/tracker/CVE-2026-138404]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [SUSE security advisories and VEX]