Home › Vulnerabilities › PostgreSQL
psqlODBC batch: DLL hijacking, insecure logs and password exposure in versions up to 18.00.0007
NVD published three psqlODBC flaws on 2026-11-29. The most severe, CVE-2026-138406 (HIGH, CVSS 7.3), lets a local user plant a DLL on Windows builds, and two MEDIUM issues affect debug logging.
What to look into
- 3 vulnerabilities in PostgreSQL psqlODBC: 1 high, 2 medium (CVSS up to 7.3).
- None of them is known to be exploited yet.
- Start with CVE-2026-138406 (7.3 high): psqlODBC DLL Loading Vulnerability in PostgreSQL. An attacker with a normal user account can exploit this with local access if a user is tricked into an action.
- 0 of 3 can be attacked over the network without logging in.
- Kinds of flaws: Uncontrolled Search Path Element; Improper Link Resolution Before File Access ('Link Following'); Creation of Temporary File in Directory with Insecure Permissions; Incorrect Permission Assignment for Critical Resource.
Key points
- CVE-2026-138406 is the highest-rated flaw (HIGH, CVSS 7.3) and affects Windows builds that load pgenlist.dll by name.
- Applications that never set SQLATTRENLISTINDTC do not load pgenlist.dll, according to the record.
- CVE-2026-138404 exposes debug and communication logs in shared directories, including hard-link and FIFO cases.
- CVE-2026-138405 leaves some password keyword variants unmasked in the debug log.
- The records name no fixed version for this batch and state that all three affect versions up to and including 18.00.0007.
What the batch covers
Three flaws in the psqlODBC driver for PostgreSQL were published by NVD on 29 November 2026. They cover a DLL loading weakness, insecure handling of debug and communication logs, and gaps in password masking. All three are reported as affecting versions up to and including 18.00.0007.
Most severe: CVE-2026-138406
Rated HIGH (CVSS 7.3), this is the most serious issue in the set. On Windows builds made with Visual C++ 14 or later, the driver loads pgenlist.dll by name when an application enlists in MSDTC. Windows then searches the application's directory, the current directory and the PATH directories. A local user who can write to one of those locations could place their own DLL there, and its code would run inside the application under the application's account. On a server, that account may hold more privileges than the attacker. Applications that never set SQLATTRENLISTINDTC do not load the DLL.
Logging flaws
CVE-2026-138404 (MEDIUM, CVSS 6.3) affects log files written when Debug or CommLog is enabled. The files use predictable names in a shared location: /tmp on Unix-like systems and C:\ on Windows. The logs can contain SQL text, data and connection details. According to the record, an earlier fix for CVE-2026-120066 blocked symbolic links on Unix-like systems but not hard links, and a FIFO at the log path could block the application. On Windows that fix did not apply.
Password exposure
CVE-2026-138405 (MEDIUM, CVSS 5.0) concerns masking of passwords in the debug log. Only the exact keywords PWD and Password were masked. Variants such as " PWD", "PWD ", "Passwd" and "sslpassword" were logged in clear, and masked values revealed their length. The debug log is off by default and is turned on only by an administrator. The record notes that exposure would mainly come from someone later reading a log, such as one attached to a bug report. CVE-2026-136504 is a separate issue that the records say was fixed in 18.00.0007.
Fixes and gaps
None of the records names a release that fixes all three CVEs. The records state that 18.00.0007 remains affected by each of them. No exploitation is stated in these records.
What to do
- Check the vendor for a psqlODBC release later than 18.00.0007, since the records do not name a fixed version.
- Leave SQLATTRENLISTINDTC unset in applications that do not need MSDTC enlistment, as the record indicates they are then unaffected.
- Keep Debug and CommLog turned off unless troubleshooting requires them, since the debug log is off by default.
- Review existing psqlODBC log files and restrict access to them, because they may contain SQL, data and passwords.
The 3 vulnerabilities
- CVE-2026-138406 7.3 psqlODBC DLL Loading Vulnerability in PostgreSQL
- CVE-2026-138404 6.3 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 a…
- CVE-2026-138405 5.0 Before psqlODBC writes a connection string to its debug log, it masks the password. It masked only a keyword written exactly as PWD or Password. A password given under " PWD", "PWD ", "Passwd" or "sslpassword" went into the log unmasked. T…
Frequently asked questions
How many PostgreSQL psqlODBC vulnerabilities were published on November 29, 2026?
3 vulnerabilities: 1 high, 2 medium, with CVSS scores up to 7.3.
Are any of them being exploited?
None of them is in CISA's Known Exploited Vulnerabilities catalog yet.
Which one should be fixed first?
CVE-2026-138406 (CVSS 7.3): psqlODBC DLL Loading Vulnerability in PostgreSQL.