CVE-2026-138404
CVE-2026-138404 — Another local user can read the driver's log files or make it write into the victim's own files (incomplete fix for CVE-2026-120066)
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…
Published Updated Sources: cvelistV5, PostgreSQL
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
6.3
MEDIUM
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Total
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 6.3 | CVSS 3.1 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-59
- CWE-732
- CWE-379
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
- T1547.009Boot or Logon Autostart Execution: Shortcut Modification
- T1574.005Hijack Execution Flow: Executable Installer File Permissions Weakness
- T1574.010Hijack Execution Flow: Services File Permissions Weakness
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Search application, proxy, and WAF logs for requests touching /tmp.
References
2 on the record
- github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-g696-gg8r-7j45
vendor-advisory
- odbc.postgresql.org/changelog/
release-notes
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2025-48384 Git allows arbitrary code execution through broken config quotingCVSS 8.0 · CISA KEV
- CVE-2026-123039 Local privilege escalation to root in the DynamicCLI daemon via local world-writable control socketCVSS 7.8 · CISA KEV
- CVE-2026-81963 Windows Update Stack Elevation of Privilege VulnerabilityCVSS 7.8 · CISA KEV
- CVE-2026-41091 Microsoft Defender Elevation of Privilege VulnerabilityCVSS 7.8 · CISA KEV
- CVE-2025-60710 Host Process for Windows Tasks Elevation of Privilege VulnerabilityCVSS 7.8 · CISA KEV
- CVE-2023-36874 Microsoft Windows Error Reporting Service Privilege Escalation VulnerabilityCVSS 7.8 · CISA KEV
Elsewhere on this site
- Postgresqlevery CVE for this vendor
- CWE-59other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.