CVE-2026-136501

Positioned writes go to another user's table through name and case matching

7.1 high EPSS 0.43%

Published 25 Nov 2026 Updated 25 Nov 2026 CNA: PostgreSQL

Check your servers for CVE-2026-136501

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-136501 affects psqlodbc, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

To build positioned updates and to describe columns, psqlODBC matches the names in a statement against the catalog. Where it matched differently from the server, it used another table or column:

- Table and schema names were compared case-insensitively in its column-information cache, 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 database whose encoding is single-byte, such as LATIN1 or SQL_ASCII, the server folds the accented letters of an unquoted name by its own locale, while the driver folded only A-Z, so ÉTAT could be taken for another user's "État" instead of état. - On systems other than Windows, in a Turkish or Azeri locale, an unquoted I was not folded to i, and keywords and ODBC function names did not match. - 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 without one. - After search_path changed other than through a plain SET statement, positioned writes went to the same-named table in the previously current schema. - 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.

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.

Versions up to and including psqlODBC 18.00.0006 are affected.

Severity (CVSS)

7.1 high CVSS 3.1 from PostgreSQL (CNA)
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
high: an attack depends on conditions outside the control of the attacker, such as a race
Privileges required
low: the attacker needs an ordinary user account
User interaction
required: a user has to do something, such as open a link or a file
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.43%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 38.9% of all scored CVEs. Scores of 1 Dec 2026.

Weakness

  • CWE-178 Improper Handling of Case Sensitivity
  • CWE-706 Use of Incorrectly-Resolved Name or Reference

Affected products

As the CNA lists them.

ProductVersions
psqlODBC
package psqlodbc
affected up to and including 18.00.0006
Other versions: unaffected

Is my server affected?

Find the installed version of psqlodbc and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i psqlodbc
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-136501 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-136501

RHEL, Rocky, Alma, Fedora

rpm -q psqlodbc
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-136501

Alpine

apk list --installed | grep -i psqlodbc

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-136501
trivy image --scanners vuln IMAGE | grep CVE-2026-136501

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Advisories

Patches and release notes

Source: the record CVE-2026-136501 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.