{"affected":[{"defaultStatus":"unaffected","ecosystem":"https://odbc.postgresql.org/","packageName":"psqlodbc","product":"psqlODBC","source":"CNA: PostgreSQL","vendor":"PostgreSQL","versions":[{"lessThanOrEqual":"18.00.0006","status":"affected","version":"0","versionType":"custom"}]}],"cveId":"CVE-2026-136500","cwes":["CWE-89","CWE-173"],"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.\n\nAn 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.\n\nVersions up to and including psqlODBC 18.00.0006 are affected.","epss":null,"exploits":[],"kev":null,"metrics":[{"score":8.1,"severity":"high","source":"CNA: PostgreSQL","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"score":8.1,"severity":"high","source":"NVD: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}],"modifiedAt":1795648642937,"publishedAt":1795645544748,"references":[{"source":"CNA: PostgreSQL","tags":["vendor-advisory"],"url":"https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-2rjm-67gc-54r4"},{"source":"CNA: PostgreSQL","tags":["release-notes"],"url":"https://odbc.postgresql.org/changelog/"},{"source":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","tags":[],"url":"https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-2rjm-67gc-54r4"},{"source":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","tags":[],"url":"https://odbc.postgresql.org/changelog/"}],"remediation":[],"revision":"86c718ffae349f4f85c40bf8290f2389264d61f2a7f15aa916dc06c3fa487a8d","sources":[{"modifiedAt":1795645544748,"name":"CNA: PostgreSQL","retrievedAt":1795648124690,"url":"https://www.cve.org/CVERecord?id=CVE-2026-136500"},{"modifiedAt":1795648642937,"name":"NVD","retrievedAt":1795652269535,"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-136500"}],"ssvc":null,"status":"published","title":"SQL injection with BIG5 aliases and the JOHAB, EUC_TW, EUC_CN and EUC_KR client encodings","updatedAt":1795652269535}