Read the docs

SQL injection in psqlODBC via BIG5 aliases and legacy client encodings

Priority LOW 36CWE-173Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
Impact type
SQL injection
Confidentiality · integrity · availability
High · High · High
Fix status
No fix listed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-89.

Summary

The PostgreSQL psqlODBC driver, versions up to and including 18.00.0006, mishandles multibyte client encodings when it escapes bound parameters and names passed to catalog functions such as SQLTables(). It treats BIG5 aliases such as big-5 as single-byte and accepts too narrow a range of lead bytes for JOHAB, EUC_TW, EUC_CN and EUC_KR, so a quote can be undoubled and a literal ends early (CWE-173). An end user who controls one bound character parameter or a catalog name can run SQL with the rights of the application's database role (CWE-89), but only on a non-UTF-8 ANSI connection with one of these encodings.

Written with Claude Haiku 5.5 from the sources below · 2026-11-25

Description from the CNA

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.

Why it matters now

EPSS 0.00501 35th percentileScored 2026-11-30
Fix No fix listed No fixed version in the sources yet

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
PostgreSQLpsqlODBCup to 18.00.0006—No fix listedCNA
  • psqlODBC VendorPostgreSQL Affected up to 18.00.0006 Fixed in — No fix listed CNA

Remediation

The sources list no fixed version for psqlODBC.

Written with Claude Haiku 5.5 from the sources below · 2026-11-25

Timeline

  1. 2026-11-25 Threatist record created from CVE-2026-136500

References

  • TI-2024-01491 pgjdbc SQL Injection via line comment generation CVSS 3.1CRITICAL 10.0
  • TI-2019-06651 In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and… CVSS 3.0HIGH 7.2
  • TI-2017-05187 Improper authentication in postgresql CVSS 3.0CRITICAL 9.8
  • TI-2022-06097 Unchecked Class Instantiation when providing Plugin Classes CVSS 3.1CRITICAL 9.8
  • TI-2026-96877 SQL injection in pgjdbc simple query mode parameter quoting CVSS 3.1HIGH 8.1
  • TI-2026-96876 SQL injection in pgjdbc through misparsed quoted literals CVSS 3.1HIGH 8.1
See all 256 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences