CVEfocus › CVE database › CVE-2026-120063

CVE-2026-120063psqlODBC stack buffer overflow when quoting long schema and table names

CVSS 5.9 MediumEPSS 0.3% (higher than 14% of CVEs)Published 2026-11-02Updated 2026-11-02Assigner: PostgreSQL

When psqlODBC quotes a schema or table name into a 128-byte stack buffer, its length check lets it write up to two bytes past the end of the buffer for a long name. The names come from the application's SQL text: the table of a statement the driver parses to describe its columns, and the target of the last INSERT when the driver rewrites SELECT @@IDENTITY. In the @@IDENTITY rewrite, a column name sent by the server can also write one byte past the buffer. The bytes written past the buffer are a double quote and a NUL. An application that forwards untrusted SQL text to the driver exposes its process to stack corruption. Versions before psqlODBC 18.00.0006 are affected.

CWE-121CWE-787

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
10Fix pending
3Under investigation
2Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10psqlodbcFix pendingUBUNTU-CVE-2026-120063
Ubuntu 26.04psqlodbcUnder investigationUBUNTU-CVE-2026-120063
Ubuntu 24.04psqlodbcUnder investigationUBUNTU-CVE-2026-120063
Ubuntu 22.04psqlodbcUnder investigationUBUNTU-CVE-2026-120063
Ubuntu 20.04psqlodbcFix pendingUBUNTU-CVE-2026-120063
Ubuntu 18.04psqlodbcFix pendingUBUNTU-CVE-2026-120063
Ubuntu 16.04psqlodbcFix pendingUBUNTU-CVE-2026-120063
Debian 14psqlodbcFixed1:18.00.0006-1DEBIAN-CVE-2026-120063
Debian 13psqlodbcFix pendingDEBIAN-CVE-2026-120063
Debian 12psqlodbcFix pendingDEBIAN-CVE-2026-120063
Red Hat Enterprise Linux 10postgresql-odbcFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-odbcFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-odbcFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-odbc-testsFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-odbcWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-odbcWill not fix
Out of support scope

What the vendor says

As published in the CVE record by PostgreSQL, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Solution: Upgrade to psqlODBC 18.00.0006 or later. identifierEscape bounds every write to the output buffer, including the closing quote and the terminator.

Workaround: Do not pass SQL text from untrusted sources to the driver.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.