脆弱性ウォッチ

新着 / 2026年11月26日 / CVE-2026-136507

psqlODBC 接続文字列解析の不具合(スタックバッファオーバーフロー含む)

重要 8.1

掲載

何が問題か

psqlODBCで接続文字列の解析・組み立てに不具合があり、ブレース付きの値やUTF-8で32767バイトを超える接続文字列などで、値が途中で終わったように扱われることが分かっています。Windows環境でMSDTCを使う場合は、XAライブラリのスタックバッファにコピーされる際にオーバーフローが起きる可能性も示されています。18.00.0006以前が影響を受けるとされています。

悪用されると

利用者がパスワードなどの値を入力・指定できる場合、接続文字列に別の接続キーワードを混入させ、接続先を攻撃者が選んだサーバーに変えられる可能性があります。MSDTC利用時はXAライブラリを読み込むプロセスでスタックバッファオーバーフローが起きる可能性もあります。

取るべき対応

psqlODBCを18.00.0006より新しい版へ更新することを検討してください。修正版の具体的な番号や公式な対策情報は、現時点では公表されていません。ベンダーの公開情報を確認し、利用者が入力する値を接続文字列に含める運用を見直してください。

AIが出典から要約し、数値を機械照合しています。

更新履歴

  1. 初回掲載。

指標

深刻度(CVSS v3.1)重要 8.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
実際の攻撃での悪用CISA KEVには未掲載
問題の種類CWE-74、CWE-121、CWE-197
CVE公開日2026-11-25

出典

公式の説明(英語の原文)

psqlODBC parsed and built connection strings in ways that let a value end early: - In a braced value, such as PWD={…}, a trailing byte 0x7d of a GBK, Big5 or SJIS character was taken for the closing brace. - A braced value that ended right after an escaped }} was not reported as unterminated, and its contents were parsed as further keywords. - SQLConnectW(), SQLDriverConnectW() and SQLBrowseConnectW() cut a connection string whose UTF-8 form is longer than 32767 bytes, which changes how the rest of it is parsed. - On Windows with MSDTC, the password and user name were put into the XA open string without escaping, and the XA library copied each item of that string into a 64-byte stack buffer. - Percent-encoding a long password wrote one byte past a 4096-byte stack buffer. An end user who supplies a password, or another value the application puts into the connection string, can set other connection keywords, for example to connect the application to a server of their choosing. The MSDTC case can also overflow a stack buffer in the process that loads the XA library. Versions up to and including psqlODBC 18.00.0006 are affected.