psqlODBC is the PostgreSQL ODBC driver, the library behind every odbc-postgresql or postgresql-odbc package and the way a great deal of reporting, ETL and legacy application software on Linux talks to Postgres. To escape a bound parameter, or a name it puts into one of its own catalogue queries, the driver has to know where each character of a multibyte client encoding ends, and in every release up to and including 18.00.0006 it got that wrong for BIG5 when the encoding was named by one of the server’s aliases (WIN950, Windows950, big-5), treating it as single-byte, and accepted too narrow a range of lead bytes for JOHAB, EUC_TW, EUC_CN and EUC_KR. A quote byte that the server reads as part of a character then went undoubled, or one it reads on its own was taken for part of a character, and the literal ended early: SQL injection, with the application’s database rights, from an end user who controls one bound string. Upgrade psqlODBC to 18.00.0007 or later (18.00.0008 is current) and restart the applications that load it; until then, connect in UTF-8 through the Unicode driver and let the server prepare statements. It is one of seventeen psqlODBC CVEs fixed in that release.
CVE-2026-136500 at a glance.
| Component | psqlODBC, the PostgreSQL ODBC driver (psqlodbca.so ANSI and psqlodbcw.so Unicode), its parameter-escaping and catalogue-function code; packaged as odbc-postgresql (Debian/Ubuntu), postgresql-odbc (RHEL), psqlODBC (SUSE) |
| Affected versions | every psqlODBC release up to and including 18.00.0006 (the record’s range starts at 0); the distribution packages of 13.02, 17.00 and 18.00.0006 in the table below are all affected |
| Fixed in | psqlODBC 18.00.0007, whose changelog entry names this CVE and sixteen siblings (CVE-2026-136499 to CVE-2026-136515); 18.00.0008, the current release, fixes three more (CVE-2026-138404 to 138406). The release date of 18.00.0007 is not printed on the changelog; the CVE records are dated 25 November 2026 |
| Severity | PostgreSQL (CNA) CVSS 3.1 8.1 High (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H); NVD Received with the CNA’s vector; SUSE important, 8.1 and CVSS 4.0 9.2. CWE-89 (SQL injection) and CWE-173 (improper handling of alternate encoding). The GitHub advisory GHSA-2rjm-67gc-54r4 refused our reader; Red Hat and Ubuntu pages likewise |
| Exploited in the wild | Not on CISA’s Known Exploited Vulnerabilities list as of 30 November 2026 (catalogue 2026.11.27). EPSS: no score yet on 30 November 2026 |
| Who is exposed | applications using psqlODBC on a connection that is not UTF-8, through the ANSI driver or the ANSI entry points, with one of the named client encodings, where an end user controls a bound character parameter (and the driver substitutes parameters itself, as it does with UseServerSidePrepare=0 or any cursor type other than forward-only) or controls a name passed to a catalogue function such as SQLTables(). UTF-8 connections, and the Unicode driver with the server doing the preparing, are not on this path |
| Published | CVE record 25 November 2026 (PostgreSQL CNA); this page built 30 November 2026, last updated 30 November 2026 |
What it is
An ODBC driver that substitutes parameters into SQL text on the client has to quote them, and quoting a string correctly means knowing which bytes are quote characters. In a multibyte encoding a byte that looks like ' can be the trailing byte of a two-byte character, and a correct escaper must walk the string character by character, using the encoding’s rules for lead bytes, to tell the two apart. The record describes two failures of that walk: a client encoding named by an alias the server accepts for BIG5 was “treated as single-byte”, so every '-valued trailing byte was taken for a quote and doubled; and for JOHAB, EUC_TW, EUC_CN and EUC_KR the driver “accepted too narrow a range of lead bytes”, so some genuine lead bytes were not recognised and the byte after them was read on its own. Either way the driver and the server disagree about where a character ends, and “the literal ended early”.
A literal that ends early is SQL injection by another name: the rest of the attacker’s string runs as SQL “with the rights of the application’s database role”. The preconditions are specific and the record lists them. The connection must not be UTF-8, which means the ANSI driver or the ANSI entry points with one of these East Asian client encodings; for bound parameters, the driver must be substituting them itself, which it does when UseServerSidePrepare=0 or when the cursor type is anything but forward-only; and the attacker must control either a bound character parameter or a name the application passes to a catalogue function such as SQLTables(), where there is no server-side preparing to fall back on. That is why the CNA’s vector carries high attack complexity, and why SUSE’s CVSS 4.0 of 9.2 is not a contradiction: on a system that meets the preconditions, it is a plain injection.
This is one of seventeen psqlODBC advisories published together on 25 November 2026 and fixed in 18.00.0007; several of its siblings (CVE-2026-136502 and CVE-2026-136506 among them) are also SQL injections through the driver’s own reading of statement text, and 18.00.0008 followed with three more fixes. The distributions are only beginning to catch up: Debian unstable has 18.00.0007, openSUSE Tumbleweed has it, and every stable release of every distribution we could read is still on an affected version with no advisory.
Who is affected on Linux
Each row is what the distribution’s own security tracker said on 30 November 2026; the link in the row is the tracker page, which will be newer than this one.
| Distribution | Status | Fixed package |
|---|---|---|
| Alpine | Tracker unreachable on 30 November 2026 | — |
| Debian | Vulnerable in bookworm (1:13.02.0000-2), trixie (1:17.00.0004-2) and forky (1:18.00.0006-1); fixed in sid; no DSA or DLA | sid psqlodbc 1:18.00.0007-1 (now 1:18.00.0007-2) |
| Ubuntu | Tracker unreachable on 30 November 2026 | not read; odbc-postgresql at 18.00.0007 or later is the version to look for |
| RHEL, Rocky, Alma, CentOS Stream | Security-data feed unreachable on 30 November 2026 | not read; the package is postgresql-odbc |
| openSUSE/SLE | important, 8.1 / CVSS 4.0 9.2, Pending (bug 1292040); Affected on SLES 15 SP7, the Basesystem module, HPC and SAP products, SUSE Manager and Leap 15.3–15.6; released for Tumbleweed | Tumbleweed psqlODBC 18.00.0007-1.1 (openSUSE-Tumbleweed-2026-12716); nothing for SLE on 30 November 2026 |
| Fedora, Arch; source builds and vendor-bundled drivers | Not consulted; upstream fixed versions apply | psqlODBC 18.00.0007 or 18.00.0008 |
How to check
Three questions: which driver is installed, do any DSNs or connection strings use the ANSI driver or a non-UTF-8 client encoding, and does the application let users supply bound strings or catalogue names on such a connection. The first two are files; the third is the application.
# 1. which psqlODBC is installed, and which driver files the ODBC manager knows about
dpkg -l odbc-postgresql 2>/dev/null | awk '/^ii/{print $2, $3}'; rpm -q postgresql-odbc psqlODBC 2>/dev/null
odbcinst -q -d # driver names registered in odbcinst.ini
odbcinst -q -d -n PostgreSQL 2>/dev/null # the Driver= line tells you ANSI (psqlodbca.so) or Unicode (psqlodbcw.so)
for f in $(grep -rhoE '^Driver\s*=\s*\S+psqlodbc\S*' /etc/odbcinst.ini 2>/dev/null | awk -F= '{print $2}'); do
echo "$f: $(strings "$f" 2>/dev/null | grep -m1 -E '^[0-9]{2}\.[0-9]{2}\.[0-9]{4}$')"; done
# 2. DSNs and connection options that put you on the vulnerable path
grep -nEi 'psqlodbca|UseServerSidePrepare|client_encoding|ConnSettings|Protocol' /etc/odbc.ini ~/.odbc.ini 2>/dev/null
grep -rnEi 'Driver=\{?PostgreSQL ANSI|psqlodbca' /etc/ /opt/ 2>/dev/null | grep -v Binary
# 3. what client_encoding a live connection actually gets (run on the server, as a superuser)
psql -Atc "select datname, usename, client_addr, application_name from pg_stat_activity where application_name ilike '%odbc%' or usename in ('your_app_role');"
psql -Atc "select name, setting from pg_settings where name='client_encoding';"A driver file reporting 18.00.0007 or 18.00.0008, or a distribution package at or above the version in the table, is fixed. Anything older is affected, but exposed only when step 2 turns something up: a DSN or connection string that names the ANSI driver, sets UseServerSidePrepare=0, or sets client_encoding (via ConnSettings or the server’s per-database or per-role default) to BIG5, JOHAB, EUC_TW, EUC_CN or EUC_KR, or any of their aliases. A Unicode-driver connection with the default UTF-8 encoding is not on the path for bound parameters. The catalogue-function case has no configuration test: if the application passes a user-supplied name to SQLTables(), SQLColumns() or their relatives on a non-UTF-8 connection, only the upgrade closes it.
How to fix it
Upgrade to psqlODBC 18.00.0007 or later and restart every process that has the driver loaded; a shared library already mapped into a long-running application server, ETL daemon or reporting service keeps the old code until that process exits. On 30 November 2026 only Debian sid and openSUSE Tumbleweed ship the fix as a package, so on a stable release the choice is a backport, a build from source, or the mitigation below until the distribution catches up.
# Debian sid (and trixie/bookworm once a DSA lands) / Ubuntu once a USN lands
apt update && apt install --only-upgrade odbc-postgresql
# RHEL family, once an erratum lands
dnf upgrade postgresql-odbc
# openSUSE Tumbleweed (SLE: nothing yet, bug 1292040)
zypper patch
# from source: 18.00.0008 is the current release; the tarballs live under https://ftp.postgresql.org/pub/odbc/releases/
tar xzf psqlodbc-18.00.0008.tar.gz && cd psqlodbc-18.00.0008 && ./configure --with-unixodbc && make && sudo make install
# then restart whatever has it mapped
for p in $(sudo grep -l psqlodbc /proc/[0-9]*/maps 2>/dev/null | cut -d/ -f3); do ps -o pid,comm= -p "$p"; doneUntil the upgrade, take the driver out of the quoting business. Use the Unicode driver (psqlodbcw.so) so the connection is UTF-8, set UseServerSidePrepare=1 and keep cursors forward-only so bound parameters travel to the server in the protocol rather than being spliced into SQL text, and never pass user input as a name to a catalogue function; filter the result instead. The first two are DSN lines and need only a reconnect. What not to do: switching the server’s client_encoding default is not a fix on its own if the DSN overrides it, and doubling quotes in the application before binding is exactly the arithmetic the driver gets wrong.
# mitigation in /etc/odbc.ini (or the connection string): Unicode driver, server-side prepare, no client-side encoding override
[myapp]
Driver=PostgreSQL Unicode
UseServerSidePrepare=1
# remove any ConnSettings=set client_encoding to ... line
# verify from the server side after a reconnect
psql -Atc "show client_encoding;"Sources
- CVE-2026-136500 at CVE.org — the PostgreSQL CNA record (25 November 2026): the description, affected 0 to before 18.00.0007, CVSS 3.1 8.1, CWE-89 and CWE-173
- psqlODBC release notes — the 18.00.0007 entry naming this CVE and its sixteen siblings, and the 18.00.0008 entry; the GitHub advisory GHSA-2rjm-67gc-54r4 named by the record refused our reader
- NVD entry — Received on 30 November 2026, carrying the CNA’s vector; no NVD score yet
- Distribution trackers: Debian (fixed in sid 1:18.00.0007-1, no DSA) · Ubuntu (unreachable on 30 November) · Red Hat (unreachable on 30 November) · SUSE (important, bug 1292040, Tumbleweed fixed) · Alpine (unreachable on 30 November)
- CISA KEV catalogue 2026.11.27, not listed · EPSS, no score on 30 November 2026
Related reading
- CVE-2026-136502 and CVE-2026-136507: the two other psqlODBC advisories rated 8.1 from the same release, and CVE-2026-136504 and CVE-2026-138405, the debug-log password leaks (pages forthcoming)
- CVE-2026-114952: MySQL network protocol compromise — the other database-client advisory from this month
- Running PostgreSQL Properly: A Transaction’s Path to Durability — where
client_encoding, per-role defaults andpg_stat_activityfit in - The Half of Patching That Happens After the Patch is Installed — why a replaced shared library does nothing until the process that mapped it restarts
This advisory page was assembled from the primary sources listed above on 30 November 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.

