CVE-2026-138404
Last modified
CVE-2026-138404 is a medium-severity vulnerability rated 6.3/10 on the CVSS scale. 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. EPSS estimates a 0.18% chance of exploitation in the next 30 days.
Description
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| PostgreSQL | psqlODBC | <= 18.00.0007 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-138404?
How severe is CVE-2026-138404?
How do I fix CVE-2026-138404?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-138398A vulnerability was detected in FusionPBX up to 5.6.5. This …3.5
- CVE-2026-138399A flaw has been found in itsourcecode Stock Management Syste…6.3
- CVE-2026-13840Insufficient policy enforcement in Canvas in Google Chrome p…6.5
- CVE-2026-138400A vulnerability has been found in itsourcecode Stock Managem…6.3
- CVE-2026-138401A vulnerability was found in KarthikNarla Restaurant-Managem…6.3
- CVE-2026-138402A vulnerability was determined in anshikasharma09 Blood-Bank…7.3
- CVE-2026-138405Before psqlODBC writes a connection string to its debug log,…5
- CVE-2026-138406psqlODBC uses pgenlist.dll, which is installed with the driv…7.3
- CVE-2026-138407A vulnerability has been found in Beetel 777VR1 Broadband Ro…10
- CVE-2026-138408In Forgejo before 15.0.12 and 16.x and 17.x before 17.0.2, e…7.7
- CVE-2026-13841Integer overflow in Skia in Google Chrome prior to 150.0.787…8.3
- CVE-2026-138410A weakness has been identified in BookStackApp BookStack up …4.3
Are you affected by CVE-2026-138404?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
