psqlODBCに脆弱性、特定の文字コードでSQLインジェクションのおそれ
Summary
psqlODBCには、特定のクライアントエンコーディングで文字の区切りを誤って判定し、SQLインジェクションを許すおそれがある脆弱性があります。BIG5の別名や、JOHAB・EUC_TW・EUC_CN・EUC_KRを使う非UTF-8接続が対象で、18.00.0006以前の版が影響を受けます。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には、特定のクライアントエンコーディングで文字の区切りを誤って判定し、SQLインジェクションを許すおそれがある脆弱性があります。BIG5の別名や、JOHAB・EUC_TW・EUC_CN・EUC_KRを使う非UTF-8接続が対象で、18.00.0006以前の版が影響を受けます。SQLが埋め込まれるおそれがあるため、該当する接続設定の有無を確認し、修正版への更新を検討してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| PostgreSQLpsqlODBC |
≤ 18.00.0006→ 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-136500 psqlodbc No fixed version in this record
- Ubuntu UBUNTU-CVE-2026-136500 psqlodbc No fixed version in this record
Original description The description as published by the source.
To escape a bound parameter, or a name passed to a catalog function, psqlODBC has to know where each multibyte character of the client encoding ends. It treated a client encoding named by an alias the server accepts, such as WIN950, Windows950 or big-5 for BIG5, as single-byte, and it accepted too narrow a range of lead bytes for JOHAB, EUC_TW, EUC_CN and EUC_KR. A quote byte that the server reads as part of such a character was then not doubled, or a quote the server reads on its own was taken for part of a character, and the literal ended early.
An end user who controls one bound character parameter, or a name the application passes to a catalog function such as SQLTables(), can run SQL with the rights of the application's database role. This requires a connection that is not in UTF-8: the ANSI driver, or the ANSI entry points, with one of these client encodings. For bound parameters the driver must also be substituting parameters itself, as it does with UseServerSidePrepare=0 or a cursor type other than forward-only.
Versions up to and including psqlODBC 18.00.0006 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