Skip to content
High 7.5

psqlODBCに細工したSQLでヒープ破壊を起こされる脆弱性

CVE-2026-136515 First seen on SecPulse

Summary

psqlODBCの18.00.0006以前では、SQL文の書き換え処理の不具合によりメモリが壊れ、アプリケーションが停止するおそれがあります。ユーザーが入力したSQLを実行するツールやレポート作成ソフトは特に注意が必要です。コード実行は実証されていないと案内されています。修正版の有無は公表されていないため、最新の情報を確認してください。

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の18.00.0006以前では、SQL文の書き換え処理の不具合によりメモリが壊れ、アプリケーションが停止するおそれがあります。ユーザーが入力したSQLを実行するツールやレポート作成ソフトは特に注意が必要です。コード実行は実証されていないと案内されています。修正版の有無は公表されていないため、最新の情報を確認してください。

Affected packages

PackageAffected → Fixed
PostgreSQLpsqlODBC
≤ 18.00.0006→ 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.

Original description The description as published by the source.

psqlODBC rewrites statement text for keyset-driven cursors and ODBC escapes using positions it found in the text. These positions could lie outside the text or describe another statement:

  • After SQLExecDirect() failed on a statement handle, the FROM and WHERE positions of the failed statement were applied to the next, shorter statement on that handle.
  • The parser could record a FROM position with no text after it, and the rewrite then copied a negative length.
  • An {fn …} escape whose arguments contain FOR UPDATE, ; or INTO … FROM made the driver remove a cursor prefix from the wrong buffer.
  • {fn CONVERT(?, …)} with an output parameter produced a negative argument length.
  • An unclosed {fn …} escape made the driver read past the statement, and a few thousand nested ones exhausted the stack.
  • Translating @@identity in long statement text read an uninitialised pointer, and {? = call …} with nothing bound for the return value dereferenced NULL.

Whoever supplies the text of a statement that an application opens on a keyset-driven or dynamic cursor with a concurrency other than read-only, or calls with an output parameter, can corrupt the application's heap and end it. That includes the users of query tools, report builders and other applications that run SQL their users type. Code execution has not been demonstrated.

Versions up to and including psqlODBC 18.00.0006 are affected.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details