psqlODBC, the PostgreSQL ODBC driver, builds positioned updates and column descriptions by matching the names in a statement against the server catalogue, and in eight related places it matched differently from the server: case-insensitively where the server is case-sensitive, folding only A-Z where the server folds by locale, taking ONLY for a table name, trusting a cached schema after search_path changed, and trusting a ctid inside an application-supplied bookmark. The record’s summary of the consequence is that “a database user who can create a table in a schema on another user’s search_path can redirect that user’s positioned updates, inserts and deletes to a table of their choosing, where they run with the victim’s rights, or run an expression of their choosing under the victim’s role.” The PostgreSQL CNA scores it 7.1 (network, high complexity, low privileges, user interaction, full impact); SUSE rates it important. Upgrade every client host’s psqlODBC to 18.00.0007 or later (18.00.0008 is current); until then, make sure no untrusted role holds CREATE on a schema that sits on your applications’ search_path, and schema-qualify the tables that ODBC applications write through cursors.
CVE-2026-136501 at a glance.
| Component | psqlODBC, the PostgreSQL ODBC driver (psqlodbcw.so / psqlodbca.so): the column-information cache, the positioned-update and catalogue functions (SQLSpecialColumns(), SQLPrimaryKeys(), SQLBulkOperations()) and the identifier folding; packaged as odbc-postgresql on Debian and Ubuntu, postgresql-odbc on the Red Hat family, psqlODBC on SUSE |
| Affected versions | every release up to and including 18.00.0006; the changelog says all releases before 18.00.0007 are affected unless an entry gives a narrower range |
| Fixed in | psqlODBC 18.00.0007, one of the 25 November 2026 advisory set, with 18.00.0008 the newest release on the project changelog (undated there); the 18.00.0007 entry says the catalogue functions now fold unquoted names to lower case before searching, and the driver asks the server for the schema of an unqualified table instead of using a cached current_schema() |
| Severity | PostgreSQL CNA CVSS 3.1 7.1 High (AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H), CWE-178 (improper handling of case sensitivity) and CWE-706 (use of an incorrectly resolved name); NVD Received with that vector and no score of its own. SUSE important, 7.1 and a CVSS 4.0 of 7.7, Pending; Ubuntu Medium, 7.1, needs evaluation. Red Hat’s and Alpine’s pages refused our reader on 1 December, as did the GitHub advisory |
| Exploited in the wild | Not on CISA’s Known Exploited Vulnerabilities list as of 1 December 2026 (catalogue 2026.11.27). EPSS: no score yet on 1 December 2026 |
| Who is exposed | any application that writes to PostgreSQL through this driver with positioned cursors, bookmarks or @@IDENTITY, on a database where another role can create tables in a schema that precedes the application’s tables on its search_path, or where the client encoding is single-byte, or where the process runs in a Turkish or Azeri locale. The attacker is a database user (PR:L) and needs the victim application to run the affected statement (UI:R); the result runs with the victim’s rights. A server where CREATE on public has been revoked (the PostgreSQL 15 default) and roles have no schema of their own on others’ paths takes most of the attacker’s precondition away |
| Published | CVE record 25 November 2026 (PostgreSQL CNA); this page built 1 December 2026, last updated 1 December 2026 |
What it is
An ODBC driver has to answer questions the server never asked: which table does a positioned UPDATE … WHERE CURRENT OF target, what are a result column’s type and size, which columns make a row unique. psqlODBC answered them from its own catalogue cache, keyed by name, and the record lists eight ways that key matched the wrong object. Table and schema names were compared case-insensitively, “so users could be taken for another user’s Users“, and the driver then evaluated that table’s column default to answer @@IDENTITY. In FROM ONLY t, ONLY was taken for the table name. Column names were compared case-insensitively, so with Parse=1 the type of another column could decide the size of the application’s buffer, “which a fetch then overflowed”. In a single-byte database encoding the server folds accented letters by its locale while the driver folded only A-Z, so ÉTAT could be taken for another user’s État; and on systems other than Windows, in a Turkish or Azeri locale, an unquoted I was not folded to i, so keywords and ODBC function names did not match.
Three more are about which object a name resolves to at all. Without a schema name, SQLSpecialColumns() could report the key columns of another user’s same-named temporary table, and SQLPrimaryKeys() could take another user’s index named <table>_pkey for the primary key of a table that has none. After search_path changed other than through a plain SET, positioned writes went to the same-named table in the previously current schema. And SQLBulkOperations() “trusted the ctid stored inside a variable-length bookmark handed back by the application, and ignored the WHERE clause that restricted the cursor, so a forged bookmark read, updated or deleted any row of the cursor’s table”. Put together, a role that can create a table where the victim’s driver will find it first can choose where the victim’s writes land, and a column default on that table is an expression that runs under the victim’s role.
The 18.00.0007 changelog entry describes the fix in two behaviours: catalogue functions with SQL_ATTR_METADATA_ID or LowerCaseIdentifier fold unquoted names to lower case before searching, matching the server, and the driver asks the server for the schema of an unqualified table name rather than reusing a cached current_schema(), which is what moved positioned writes to the wrong schema. The GitHub advisory GHSA-38cc-jj5v-wrg6 that the record names was rate-limited for our reader on 1 December, so any workaround it carries is not quoted here; the mitigation below follows from the preconditions the record states. This is one of the 25 November psqlODBC advisory set, written up one CVE per page on this site, and it shares the 18.00.0007 release with its siblings linked below.
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.
| Distribution | Status | Fixed package |
|---|---|---|
| Alpine | Tracker page refused our reader on 1 December 2026 | — |
| Debian | Fixed in sid; bookworm (1:13.02.0000-2), trixie (1:17.00.0004-2) and forky (1:18.00.0006-1) vulnerable; no DSA or DLA, no bug number | sid 1:18.00.0008-1 (the fix recorded as 1:18.00.0007-1); nothing for stable on 1 December 2026 |
| Ubuntu | Medium, 7.1; psqlodbc needs evaluation on every release from 16.04 to 26.10 (page of 26 November, updated 30 November) | nothing on 1 December 2026 |
| RHEL, Rocky, Alma, CentOS Stream | Red Hat’s CVE page and data feed refused our reader on 1 December 2026; postgresql-odbc is the package to watch | not known to this page |
| openSUSE/SLE | important, 7.1 (CVSS 4.0 7.7), Pending (bug 1292045); released for openSUSE Tumbleweed; every SLE, SLE LTSS, SUSE Manager and Leap 15.x product affected | Tumbleweed psqlODBC 18.00.0007-1.1 (openSUSE-Tumbleweed-2026-12716); nothing for SLE or Leap on 1 December 2026 |
| Fedora, Arch; builds from source | Not consulted; the upstream release applies | 18.00.0007 or later (18.00.0008 current) |
How to check
Three questions, in order: which driver build is installed, do any data sources use the paths the bug lives in, and can an untrusted role create tables where your applications will find them first. This is a client-side bug, so the first two are asked on every host that runs ODBC applications, and the third on the server.
# 1. the installed driver and its version
odbcinst -q -d; grep -A4 -i postgres /etc/odbcinst.ini 2>/dev/null
dpkg -l odbc-postgresql 2>/dev/null | tail -1; rpm -q postgresql-odbc psqlODBC 2>/dev/null
strings "$(grep -A4 -i postgres /etc/odbcinst.ini | grep -m1 -i driver | cut -d= -f2 | tr -d ' ')" | grep -E '^(0[0-9]|1[0-9])\.[0-9]{2}\.[0-9]{4}'
# 2. data sources on the affected paths: Parse=1, bookmarks, single-byte encodings, non-UTF-8 locale
grep -iE 'Parse\s*=\s*1|UseDeclareFetch|ClientEncoding|SSLmode' /etc/odbc.ini ~/.odbc.ini 2>/dev/null
locale | grep -E '^(LANG|LC_ALL|LC_CTYPE)'
psql -Atc "select datname, pg_encoding_to_char(encoding) from pg_database where encoding <> pg_char_to_encoding('UTF8');"
# 3. on the server: who can CREATE in schemas on your applications' search_path
psql -Atc "select nspname, nspacl from pg_namespace where nspname not like 'pg_%' and nspname <> 'information_schema';"
psql -Atc "select rolname, rolconfig from pg_roles where rolconfig::text like '%search_path%';"A driver at 18.00.0007 or later is done. Below it, step 2 says how exposed each data source is: Parse=1, bookmark use and a single-byte database encoding each open one of the record’s paths, and a Turkish or Azeri locale another. Step 3 is the attacker’s precondition: if no role other than the owners can create objects in the schemas your applications search, nobody can plant the table the bug resolves to, and the server-side fix is cheaper than the client roll-out while you wait for packages.
How to fix it
Upgrade the driver on every client host; the server needs no change for the fix itself. Debian sid and openSUSE Tumbleweed carry 18.00.0007 or later; Debian stable, Ubuntu, SLE and Leap had no fixed package on 1 December 2026, and the project’s own source release is the alternative on those. Restart the ODBC applications afterwards, since the driver is loaded into their process.
# Debian sid / openSUSE Tumbleweed
apt update && apt install odbc-postgresql
zypper refresh && zypper update psqlODBC
# other distributions: watch the tracker row, or build 18.00.0008 from the project's release
# https://odbc.postgresql.org/ — then confirm what the applications load:
strings /usr/lib/*/odbc/psqlodbcw.so 2>/dev/null | grep -E '^18\.00\.000[7-9]'Until the driver is replaced, close the precondition on the server: revoke CREATE on public and on any shared schema from roles that do not own it, give each role its own schema only if that schema is not on other roles’ search_path, and have the ODBC applications schema-qualify the tables they update through cursors. What not to do: do not rely on quoting identifiers in the application as the whole answer, since several of the paths (bookmarks, the cached schema after a search_path change, the Turkish locale) do not depend on how the application spelled the name; and do not switch an application’s connection to Parse=0 without testing it, because it changes how column metadata is obtained.
-- mitigation, on the server: nobody but owners may create objects in schemas applications search
REVOKE CREATE ON SCHEMA public FROM PUBLIC;
SELECT nspname, pg_get_userbyid(nspowner) AS owner, nspacl FROM pg_namespace WHERE nspname NOT LIKE 'pg_%';
-- for each application role, pin the path to schemas only its owners can write
ALTER ROLE app_user SET search_path = app_schema;Sources
- CVE-2026-136501 at CVE.org — the PostgreSQL CNA record (25 November 2026): the eight sub-issues, the attacker summary, the affected range and CVSS 3.1 7.1
- psqlODBC changelog — the 18.00.0007 entry naming this CVE and the two behaviour changes, and 18.00.0008 as the newest release · GHSA-38cc-jj5v-wrg6, the project advisory the record names, which was rate-limited for our reader on 1 December
- NVD entry — Received, carrying the CNA’s vector, CWE-178 and CWE-706; no NVD score or CPE yet
- Distribution trackers: Debian (sid fixed, stable vulnerable) · Ubuntu (Medium, needs evaluation) · SUSE (important, Tumbleweed released, SLE and Leap affected) · Red Hat and Alpine refused our reader on 1 December
- CISA KEV catalogue 2026.11.27, not listed · EPSS, no score for this CVE on 1 December 2026
Related reading
- CVE-2026-136506: psqlODBC SQL injection through catalogue names and search_path — the sibling from the same advisory set that attacks the same catalogue lookups from the other direction
- CVE-2026-136500: psqlODBC quote inside a multibyte character ends the SQL literal — the encoding-dependent sibling, for the same single-byte and non-UTF-8 preconditions
- CVE-2026-136502: psqlODBC statement text read differently from the server — the driver and the server disagreeing about a statement, the same class of bug as this one
- CVE-2026-136515: psqlODBC statement rewriting for cursors and escapes — the cursor side of the same release
- CVE-2026-136507: psqlODBC password ends the connection string early — the first of the set written up here, with the shared 18.00.0007 release notes
- Security advisories on Linuxtastic — every CVE page on this site, 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.
