---
id: CVE-2026-120062
title: psqlODBC SQL injection through SQLSpecialColumns table and schema names
summary: >-
  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 SQL…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'
cvssSource: cna
cwe:
  - CWE-89
vendor: PostgreSQL
product: psqlODBC
affected:
  - psqlODBC < 18.00.0006
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-11-02T19:35:26.571009Z'
published: '2026-11-02'
updated: '2026-11-02'
sourceUpdated: '2026-11-02T19:35:38.418Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-120062'
references:
  - url: >-
      https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-gg8f-fx3w-rj33
tags:
  - cve.org
epss: 0.00357
epssPercentile: 0.29552
ingestedAt: '2026-11-05T19:30:42.802Z'
---

## Overview

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.

## Affected

- `psqlODBC < 18.00.0006`

## Remediation

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

### Workarounds

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