Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-138404

published medium CVSS 3.1 · 6.3

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)

Published
29 Nov 2026, 18:01:24 UTC
Updated
29 Nov 2026, 18:01:24 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
PostgreSQL — psqlodbcpsqlODBC · 0 through 18.00.0007 · Other versions: unaffected Affected Not stated PostgreSQL
Amazon Linux AL2 Release evaluation Pending Fix Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Pending Fix Not stated Amazon Linux assessment

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.

en · PostgreSQL · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
6.3 / 10
Severity
medium
Provider
PostgreSQL · cna
Vector string
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
PostgreSQL psqlODBC 0 through 18.00.0007 (affected · custom)Default: unaffected PostgreSQL · cna

Weaknesses

3
  • CWE-59 CWE-59 Improper Link Resolution Before File Access ('Link Following') (PostgreSQL · cna)
  • CWE-732 CWE-732 Incorrect Permission Assignment for Critical Resource (PostgreSQL · cna)
  • CWE-379 CWE-379 Creation of Temporary File in Directory with Insecure Permissions (PostgreSQL · cna)

References

2
  • GHSA-g696-gg8r-7j45 https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-g696-gg8r-7j45 vendor-advisory Contributors: PostgreSQL (cna)
  • psqlODBC changelog https://odbc.postgresql.org/changelog/ release-notes Contributors: PostgreSQL (cna)

Provider assertions

1

PostgreSQL · cna

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)

Provenance

Schema
5.2
Searchable
yes
Content hash
28b5a30950d770a81a1f0060527b7b2005a9a06d03233f207d165ffb7f00fa9d
Ingested
29 Nov 2026, 18:18:35 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected