Skip to content
High 8.1

psqlODBCでSQLインジェクションとSQLの誤認による書き込み先の変更の脆弱性

CVE-2026-136502 First seen on SecPulse

Summary

psqlODBCは、ドライバーがSQL文を解釈する方法がサーバーと異なるため、データとして扱うべき文字列がSQLとして実行される脆弱性があります。18.00.0006以前が影響を受け、更新可能カーソルでは別のテーブルへ書き込まれるおそれもあります。修正版の有無は事実に含まれていないため、最新の情報を確認してください。

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は、ドライバーがSQL文を解釈する方法がサーバーと異なるため、データとして扱うべき文字列がSQLとして実行される脆弱性があります。18.00.0006以前が影響を受け、更新可能カーソルでは別のテーブルへ書き込まれるおそれもあります。修正版の有無は事実に含まれていないため、最新の情報を確認してください。

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 scans statement text itself to substitute parameters, translate ODBC escapes, join batched statements and rewrite queries for updatable cursors. Where it read the text differently from the server, text the driver took for data ran as SQL, or a positioned write went to another table:

  • An escape string constant written e'…' in lower case was not recognised as one, and '…' after a keyword ending in E, as in LIKE'…', was taken for one.
  • A } inside a quoted literal ended an ODBC {d …}, {t …}, {ts …} or {escape …} sequence.
  • Dollar-quote tags containing _ were not recognised, and an identifier starting with _ followed by $, such as _$$, was taken for the start of a dollar quote, so a parameter marker inside a literal was substituted.
  • A trailing -- comment in one statement of a batched parameter array swallowed the next statement.
  • Comments, literals longer than 255 bytes and escape strings were misread when the driver located the FROM and WHERE clauses of a query for an updatable cursor, and the text copied into the cursor's own queries could include SQL from inside a literal.
  • A table name containing $ was cut at the $, and a quoted table name starting with , or ; ended the table list, so positioned updates, inserts and deletes went to another table.
  • An integer parameter with an embedded NUL byte cut the query short.
  • /*/ was taken for a comment that opens and closes, while the server reads it as one that only opens.
  • ConnSettings was split at every semicolon,…

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