CVE-2026-136500: SQL injection with BIG5 aliases and the JOHAB, EUC_TW, EUC_CN and EUC_KR client encodings
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, EUCTW, EUCCN and EUCKR. 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.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Exposure requires the psqlODBC ANSI driver or ANSI entry points using a non-UTF-8 client encoding. The affected encodings are BIG5 when specified through server-accepted aliases such as WIN950, Windows950, or big-5, plus JOHAB, EUC_TW, EUC_CN, and EUC_KR.
What must an attacker control to exploit it?
An attacker must be able to control a character in a bound parameter, or a name that the application supplies to a catalog function such as SQLTables(). Successful exploitation runs SQL using the application's database role.
Are all bound-parameter connections affected?
No. For bound parameters, psqlODBC must be performing client-side parameter substitution, such as when UseServerSidePrepare=0 is configured or when the cursor type is not forward-only. Catalog-function name inputs are separately identified as an affected input path.
What versions need remediation?
psqlODBC versions through 18.00.0006, including that version, are affected. Remediation should prioritize connections using the identified non-UTF-8 ANSI client encodings and client-side parameter substitution.