Technical impact
SQLSpecialColumns in the psqlODBC driver interpolates user-supplied table and schema names directly into its catalog query, leaving them unescaped while other catalog functions properly escape them. If an application forwards an untrusted table or schema name to SQLSpecialColumns, the attacker can inject arbitrary SQL text that is executed with the privileges of the ODBC connection. This enables data exfiltration, modification, deletion, or privilege escalation within the database. The vulnerability is a classic input‑validation flaw, classified as CWE‑89 (SQL Injection).
Affected Systems
The flaw exists in the PostgreSQL psqlODBC driver, versions earlier than 18.00.0006. Applications that use these driver versions to query the SQLSpecialColumns catalog function are impacted. Version 18.00.0006 and later include proper escaping of object names and are not affected.
Risk and Exploitability
The CVSSv3 score of 7.5 signals a high severity impact. An EPSS score is currently unavailable, and the vulnerability is not listed in the CISA KEV catalog, suggesting limited public exploitation data. The likely attack vector involves an ODBC‑enabled application that accepts user input for table or schema names and forwards it directly to SQLSpecialColumns. Successful exploitation would allow an attacker possessing or being able to influence such an application to run arbitrary SQL under the database user’s privileges.