CVE-2026-120062

psqlODBC SQL injection through SQLSpecialColumns table and schema names

Published Nov 2, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
SQLSpecialColumns in psqlODBC splices the table and schema names it receives into its catalog query without escaping them, while the other catalog functions escape them. An application that passes an untrusted table or schema name to SQLSpecialColumns lets the caller execute arbitrary SQL with the privileges of the connection. Versions before psqlODBC 18.00.0006 are affected.

Analysis

AI-generated

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.

Remediation

Vendor Solution

Upgrade to psqlODBC 18.00.0006 or later. SQLSpecialColumns passes the escaped names to its catalog queries, as the other catalog functions do.


Vendor Workaround

Validate table and schema names against the catalog, or reject names containing quote characters or backslashes, before calling SQLSpecialColumns.


OpenCVE Recommended Actions

  • Upgrade the psqlODBC driver to version 18.00.0006 or later.
  • Validate or sanitize table and schema names against the database catalog before calling SQLSpecialColumns, rejecting any names containing quote characters or backslashes.
  • Review all ODBC‑enabled applications to ensure that any table or schema names supplied by a user are validated or restricted to known safe values, and apply this validation if the driver remains unpatched.

Generated by OpenCVE AI on November 2, 2026 at 20:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Postgresql
Postgresql psqlodbc
Vendors & Products Postgresql
Postgresql psqlodbc
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description SQLSpecialColumns in psqlODBC splices the table and schema names it receives into its catalog query without escaping them, while the other catalog functions escape them. An application that passes an untrusted table or schema name to SQLSpecialColumns lets the caller execute arbitrary SQL with the privileges of the connection. Versions before psqlODBC 18.00.0006 are affected.
Title psqlODBC SQL injection through SQLSpecialColumns table and schema names
Weaknesses CWE-89
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
PostgreSQL
Published
Updated
Nov 2, 2026, 7:35 PM
Reserved
Oct 30, 2026, 7:25 PM
Status
Awaiting Analysis
Published
Nov 2, 2026, 7:18 PM
Modified
Nov 2, 2026, 8:17 PM
Severity
Important
Public date
Nov 2, 2026, 7:09 PM