psqlODBC, the PostgreSQL ODBC driver, assumed that a table keeps the definition it had when a statement was described or parsed. It does not have to: another database user who owns a table or view that your application reads can change it between those two moments, and the driver then reads column information that no longer matches the rows, dereferences NULL, reads or writes past a buffer or frees memory twice. The PostgreSQL security team lists eight distinct ways to trigger it, all with “an honest server and default options”, and one of them, SQLTables() called with empty names and a NULL table type, needs no other user at all. Upgrade to psqlODBC 18.00.0007 or later on every host that loads the driver, and until then do not open updatable cursors on tables or views that users you do not trust own or can alter.
CVE-2026-136514 at a glance.
| Component | psqlODBC (psqlodbc), the PostgreSQL ODBC driver, in the code that caches a table’s column and key information for updatable cursors, data-at-execution parameters, output parameters and the SQLTables() catalogue call |
| Affected versions | Every release up to and including 18.00.0006, per the PostgreSQL CNA record; the Debian tracker marks 13.02, 17.00.0004 and 18.00.0006 vulnerable |
| Fixed in | psqlODBC 18.00.0007 (the GitHub advisory’s patched version; the project changelog lists this CVE under 18.00.0007 and 18.00.0008 is current); Debian sid 1:18.00.0007-1 and later |
| Severity | PostgreSQL (CNA) CVSS 3.1 6.5 Medium (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H), CWE-476, CWE-125, CWE-787, CWE-416; GitHub advisory severity Moderate; NVD Received with the CNA score. Debian no urgency set; Ubuntu page unreachable; Red Hat has no page (the driver is not in RHEL’s security data) |
| Exploited in the wild | Not on CISA’s Known Exploited Vulnerabilities list as of 1 December 2026 (catalogue 2026.11.30). EPSS: no score yet on 1 December 2026 |
| Who is exposed | Applications that reach PostgreSQL through ODBC and read tables or views owned by, or alterable by, a database user who is not the application’s own: multi-tenant schemas, reporting tools pointed at user-owned tables, ETL jobs with updatable cursors, and any ODBC consumer whose DSN sets Parse=1 or UseDeclareFetch=1. The outcome is a crash of the process that loaded the driver, which for a connection-pooling service means every session it serves. Code execution has not been demonstrated; one case writes past a heap buffer. Applications that only read tables they own, from a database with no other interactive users, are at the low end |
| Published | GitHub advisory GHSA-hcmw-j9px-6v23 and CVE record 25 November 2026; this page built 1 December 2026, last updated 1 December 2026 |
What it is
An ODBC driver sits between an application that speaks the ODBC API and a server that speaks the PostgreSQL wire protocol, and to do that it keeps its own picture of each table it touches: the columns, their types and sizes, which ones form the key. psqlODBC built that picture when a statement was described or prepared and then trusted it for the life of the statement. The CVE record lists what happens when the picture is stale. Columns dropped or added in another session while the application updates rows through an updatable cursor, or describes them with Parse=1; a view whose ctid is NULL read through an updatable cursor, “which writes past the row cache”; a view with a volatile filter scrolled backward with UseDeclareFetch=1; rows added through an updatable cursor to a table with child tables or partitions; a column whose type is named lo written with data-at-execution parameters; a DROP TABLE or ALTER TABLE on the connection while another statement still uses the table’s column information; NULL key columns in rows the driver re-reads for an updatable cursor; and a function called with more output parameters than its result has columns.
The eighth case stands apart because it needs no second user: SQLTables() and SQLTablesW() “dereferenced NULL when called with empty strings for the catalog, schema and table names together with a NULL TableType, which kills the process that loaded the driver and every session it serves”. The record is careful about impact: “the demonstrated results are crashes; one case writes past a heap buffer, but code execution has not been demonstrated.” The four CWEs map onto the cases, NULL dereference, out-of-bounds read, out-of-bounds write and use after free, and the vector’s PR:L is the second database user, who needs nothing more than ownership of a table your application reads.
The fix in 18.00.0007, in the advisory’s words, “checks table info, key columns, and column counts before use”, and it shipped on 25 November in the same release as the rest of the November psqlODBC set (CVE-2026-136499 to 136515). The finding is credited to an automated scan with OSS Scanner. There is no server-side change: PostgreSQL itself is not at fault and does not need patching for this.
Who is affected on Linux
Each row is what the distribution’s own security tracker said on 1 December 2026; the link in the row is the tracker page, which will be newer than this one. The driver is the package called odbc-postgresql on Debian and Ubuntu and postgresql-odbc on the RHEL family.
| Distribution | Status | Fixed package |
|---|---|---|
| Alpine | Not consulted for this page; the package is psqlodbc | — |
| Debian | sid fixed (1:18.00.0008-1); forky (1:18.00.0006-1), trixie (1:17.00.0004-2) and bookworm (1:13.02.0000-2) vulnerable; no DSA on 1 December | sid psqlodbc 1:18.00.0007-1 and later; nothing for stable |
| Ubuntu | Tracker unreachable on 1 December 2026 (server error on every attempt); nothing inferred. The sibling CVEs in this set were Medium, needs triage on every release when their pages were read on 30 November | — |
| RHEL, Rocky, Alma, CentOS Stream | No page (client error) on 1 December; postgresql-odbc ships in RHEL’s AppStream, and the siblings of this set had no Red Hat page either | — |
| openSUSE/SLE | Not consulted for this page; the siblings were rated moderate with Tumbleweed at 18.00.0007 on 30 November | — |
| Upstream (odbc.postgresql.org), the PostgreSQL apt and yum repositories, vendor-bundled drivers in BI and ETL tools | The upstream release applies; a driver bundled with a tool needs the tool vendor’s build | 18.00.0007 or 18.00.0008 |
How to check
Three questions, in order: which psqlODBC builds are installed and which processes have one loaded, do any DSNs turn on the options the cases name, and do the tables those applications read belong to anyone else. The driver can be installed several times on one host, from the distribution, from the PostgreSQL repository and inside a tool’s own directory, so look for the library rather than the package.
# 1. every psqlODBC library on the box, and its version (18.00.0007 or later is fixed)
find / -name 'psqlodbc*.so' -o -name 'libpsqlodbc*' 2>/dev/null | while read -r f; do printf '%s ' "$f"; strings "$f" | grep -m1 -E '^(18|17|16|13)\.[0-9]{2}\.[0-9]{4}'; done
dpkg -l 'odbc-postgresql' 2>/dev/null | awk '/^ii/{print $2, $3}'; rpm -q postgresql-odbc 2>/dev/null
# processes that have the driver mapped right now
grep -l psqlodbc /proc/[0-9]*/maps 2>/dev/null | cut -d/ -f3 | xargs -r ps -o pid,user,comm -p
# 2. DSN options the cases name
grep -niE '^\s*(Parse|UseDeclareFetch)\s*=\s*1' /etc/odbc.ini ~/.odbc.ini 2>/dev/null
# 3. on the server: tables and views the application reads that it does not own
psql -X -c "SELECT n.nspname, c.relname, pg_get_userbyid(c.relowner) AS owner FROM pg_class c JOIN pg_namespace n ON n.oid=c.relnamespace WHERE c.relkind IN ('r','v','p') AND n.nspname NOT IN ('pg_catalog','information_schema') AND pg_get_userbyid(c.relowner) <> current_user ORDER BY 1,2;"Every library at 18.00.0007 or later, with no process mapping an older copy, is done. An older driver whose applications read only their own tables, with neither option set, is exposed only to the SQLTables() case, which an application triggers on itself; an older driver reading tables another user owns, with an updatable cursor or Parse=1 in play, is the case the score describes, and the owner of any table in the step 3 list can crash that application at will.
How to fix it
Install the fixed driver and restart every process that had the old one loaded; a shared library already mapped stays in memory until the process exits, and a connection pool or application server that loaded the driver at start keeps it for as long as it runs. Drivers bundled inside a tool’s directory are replaced from the tool vendor, not the package manager.
# Debian sid / the PostgreSQL apt repository
apt update && apt install --only-upgrade odbc-postgresql
# the PostgreSQL yum repository on the RHEL family
dnf upgrade postgresql18-odbc postgresql-odbc
# then restart whatever step 1 listed, and confirm nothing maps the old file
grep -l psqlodbc /proc/[0-9]*/maps 2>/dev/null | cut -d/ -f3 | xargs -r ps -o pid,lstart,comm -pThe advisory’s workaround is narrow and worth taking literally until the upgrade lands: do not open updatable cursors on tables or views that untrusted users own or can alter. In practice that means read-only cursors for cross-owner reads, and no Parse=1 or UseDeclareFetch=1 on a DSN that touches tables outside the application’s own schema. What not to do: do not “fix” it by granting the application ownership of every table it reads, because the cases that need a second user go away but the SQLTables() one does not, and you have widened what a compromised application can do; and do not treat 18.00.0006 as recent enough, since that release fixed November’s earlier set and not this one.
Sources
- CVE-2026-136514 at CVE.org — the PostgreSQL CNA record (25 November 2026): the eight cases, the impact statement, affected up to 18.00.0006, CVSS 3.1 6.5, the four CWEs
- GHSA-hcmw-j9px-6v23 — the project’s advisory, published 25 November 2026: Moderate, patched in 18.00.0007, the “checks table info, key columns, and column counts before use” fix description, the updatable-cursor workaround, credit to an OSS Scanner run
- psqlODBC changelog — 18.00.0007 lists this CVE among CVE-2026-136499 to 136515; 18.00.0008 is the newest release
- NVD entry — Received 25 November; the CNA score and CWEs; no CPEs yet
- Distribution trackers: Debian (sid fixed 1:18.00.0007-1; forky, trixie, bookworm vulnerable) · Ubuntu (unreachable on 1 December) · Red Hat (no page)
- CISA KEV catalogue 2026.11.30, not listed · EPSS: no score on 1 December 2026
Related reading
- CVE-2026-136515: psqlODBC corrupts memory rewriting statements for cursors and ODBC escapes — the next record in the same 18.00.0007 set
- CVE-2026-136509: psqlODBC trusts server replies that do not match the queries it sent — the hostile-server sibling; this page is the honest-server one
- CVE-2026-136503: psqlODBC frees transaction clean-up state twice and writes past application buffers — same set, same release
- CVE-2026-136511: psqlODBC connects without TLS when SSLmode is written with capitals or braces — same set, the configuration one
- CVE-2026-136500: psqlODBC lets a quote inside a multibyte character end the SQL literal early — the first of the November psqlODBC pages, with the set’s shared background
- Security advisories — every Linux-relevant CVE we track, newest first, with the component index
This advisory page was assembled from the primary sources listed above on 1 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.
