psqlODBCで同じPCの別ユーザーのDLLが実行される脆弱性
Summary
psqlODBCのWindows版で、MSDTCへの登録時に名前だけでpgenlist.dllを読み込むため、攻撃者が置いたDLLのコードがアプリケーションの権限で実行されるおそれがあります。影響するのは18.00.0007までの版です。SQL_ATTR_ENLIST_IN_DTCを使わないアプリケーションは影響を受けません。修正版の情報は現時点では確認できていないため、最新の情報を確認してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
psqlODBCのWindows版で、MSDTCへの登録時に名前だけでpgenlist.dllを読み込むため、攻撃者が置いたDLLのコードがアプリケーションの権限で実行されるおそれがあります。影響するのは18.00.0007までの版です。SQL_ATTR_ENLIST_IN_DTCを使わないアプリケーションは影響を受けません。修正版の情報は現時点では確認できていないため、最新の情報を確認してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| PostgreSQLpsqlODBC |
≤ 18.00.0007→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-138406 psqlodbc No fixed version in this record
- Ubuntu UBUNTU-CVE-2026-138406 psqlodbc No fixed version in this record
Original description The description as published by the source.
psqlODBC uses pgenlist.dll, which is installed with the driver, for MSDTC enlistment. It loads the DLL the first time an application enlists. On builds made with Visual C++ 14 or later, it loaded the DLL by name, not by its path. Windows then searched the application's directory, the current directory and the directories on PATH, and none of them is where the driver installs pgenlist.dll.
So another local user who could write to one of those directories could put their own pgenlist.dll there. The next time the application enlisted in MSDTC, that DLL's code ran in the application, under the application's account. On a server, that account can have more privileges than the attacker's own.
An application that never sets SQL_ATTR_ENLIST_IN_DTC does not load pgenlist.dll and is unaffected. Only the Windows builds of the driver use pgenlist.dll.
Versions up to and including psqlODBC 18.00.0007 are affected.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory odbc.postgresql.org
- advisory github.com
- advisory nvd.nist.gov
- web odbc.postgresql.org
- web odbc.postgresql.org
- web github.com