Local users can read or redirect psqlODBC driver log files
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · Low
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA.
Summary
PostgreSQL psqlODBC versions up to and including 18.00.0007 are affected. With Debug or CommLog enabled, the driver writes logs holding SQL text, data and connection details to a shared directory under predictable names, and an incomplete fix for link handling (CWE-59) lets another local user read those logs or make the driver append to a file the victim owns through a hard link. The Windows build skips these checks, so other local users can read or modify the log files. Debug and CommLog are off by default and only an administrator can enable them.
Written with Claude Haiku 5.5 from the sources below · 2026-11-29
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| PostgreSQL | psqlODBC | up to 18.00.0007 | — | No fix listed | CNA |
- psqlODBC VendorPostgreSQL Affected up to 18.00.0007 Fixed in — No fix listed CNA
Remediation
The sources list no fixed version for psqlODBC.
Written with Claude Haiku 5.5 from the sources below · 2026-11-29
Timeline
- 2026-11-29 Threatist record created from CVE-2026-138404
- 2026-11-29 Alias added: GHSA-5rwr-cvcx-g7f2
References
Advisory 1
Other 1
More PostgreSQL vulnerabilities
- TI-2024-01491 pgjdbc SQL Injection via line comment generation CVSS 3.1CRITICAL 10.0
- TI-2019-06651 In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and… CVSS 3.0HIGH 7.2
- TI-2017-05187 Improper authentication in postgresql CVSS 3.0CRITICAL 9.8
- TI-2022-06097 Unchecked Class Instantiation when providing Plugin Classes CVSS 3.1CRITICAL 9.8
- TI-2026-96877 SQL injection in pgjdbc simple query mode parameter quoting CVSS 3.1HIGH 8.1
- TI-2026-96876 SQL injection in pgjdbc through misparsed quoted literals CVSS 3.1HIGH 8.1
Sources
- CVE-2026-138404 · CVE Program
- CVE-2026-138404 · NVD
- FIRST EPSS
- GHSA-5rwr-cvcx-g7f2 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences