DEV Community

yutianle
yutianle

Posted on

psqlODBC Moves Three Client-Side Risks Into the Patch Queue

psqlODBC Moves Three Client-Side Risks Into the Patch Queue

PostgreSQL's psqlODBC driver has three related security findings for versions through 18.00.0007. CVE-2026-138404 covers predictable log files in a shared directory. It also describes a symbolic-link case that can redirect log output and a FIFO case that can block an application while it opens the log path. CVE-2026-138405 covers incomplete password masking in debug logs. CVE-2026-138406 covers loading pgenlist.dll for MSDTC enlistment in a way that lets another local user's DLL run in the application.

These are endpoint and workstation issues, not signs that a PostgreSQL server is remotely exploitable in the same way. They still matter because database clients often run on developer laptops, application servers and administrative jump hosts with database credentials and network access.

Where the risk accumulates

Debug and CommLog are normally off. An operator who enables them for troubleshooting can create predictable files in a shared location. A local attacker who can create links or named pipes around that path may read or redirect records, trigger unwanted writes or block the client. The password-masking defect adds a confidentiality problem: several keyword spellings or a masked value's length can still reveal information that should never reach a log.

The DLL issue follows a familiar Windows search-order pattern. If the application or working directory is writable by a lower-privileged local account, an attacker may place a malicious pgenlist.dll where the process will load it. Exploitation requires the right local access and user interaction, but the resulting code runs with the database client's privileges.

A practical response

Inventory psqlODBC versions on workstations, application servers, reporting hosts and packaged desktop applications. Include drivers bundled by third-party products because a server patch does not update an embedded client. Disable Debug and CommLog except during a bounded troubleshooting window, place any temporary logs in a protected directory and remove them afterward.

Review Windows application directories, the current working directory and service search paths for writable locations. Remove stray DLLs and tighten ACLs. Rotate database passwords that may have appeared in logs, and inspect shared log directories for links, FIFOs and unexpected permissions. Verify the fixed driver release with a known-good connection test and check that MSDTC features still work where they are required.

References

Top comments (0)