# CVE-2026-136500: SQL injection with BIG5 aliases and the JOHAB, EUC_TW, EUC_CN and EUC_KR client encodings

- Severity: High 8.1 (CVSS:3.1, scored by PostgreSQL) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.50%, higher than 44% of CVEs (2026-12-01)
- Published: 2026-11-25T22:25:44.748Z
- Modified: 2026-11-25T23:17:22.937Z
- Weaknesses: CWE-89, CWE-173
- Assigned by: PostgreSQL

## Description

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.

(As written by CVE List.)

## Affected

- psqlodbc: up to 18.00.0006

## References

- <https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-2rjm-67gc-54r4> (vendor-advisory)
- <https://odbc.postgresql.org/changelog/> (release-notes)

## Sources

- CVE List: [CVE-2026-136500](https://www.cve.org/CVERecord?id=CVE-2026-136500), CVE Terms of Use, modified 2026-11-25
- NVD: [CVE-2026-136500](https://nvd.nist.gov/vuln/detail/CVE-2026-136500), Public domain, modified 2026-11-25

---

Page: https://cve.day/CVE-2026-136500 · Whole record: https://cve.day/CVE-2026-136500.json · Rebuilt by cve.day 2026-11-25T23:32:12.906Z
