CVE-2026-120065
JSON

7.1high

psqlODBC does not escape a server-supplied column name in its updatable-cursor queries

Severity
7.1high CVSS:3.1 by PostgreSQL
Exploit likelihood
0.29% (higher than 23% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
PostgreSQL

Description

For an updatable cursor over a table without OIDs that has an auto-increment int4 column, psqlODBC uses that column to identify rows. It places the column's name, as reported by the server, between double quotes in its keyset queries and in the WHERE clause of its positioned SELECT, UPDATE, and DELETE statements, without doubling any double quote in the name. A column name that contains a double quote therefore changes the SQL that the driver runs with the application's privileges, including which rows a positioned UPDATE or DELETE affects. Any database user who can create a table that the application reads with an updatable cursor can choose such a name, and so can a server not trusted under current SSL settings. Versions before psqlODBC 18.00.0006 are affected.

Affected

Product or packageVersionsReported by
PostgreSQL psqlODBCbefore 18.00.0006CVE List

Classification

CWE-89

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-120065 changed 2026-11-02CVE Terms of Use
NVDCVE-2026-120065 changed 2026-11-02Public domain