Skip to main content

psqlODBC CVE-2026-136501

HIGH
Improper Handling of Case Sensitivity (CWE-178)
2026-11-25 PostgreSQL
7.1
CVSS 3.1 · Vendor: PostgreSQL
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain DB account with CREATE on a shared schema
  2. Delivery
    Create spoofed/colliding table on victim's search_path
  3. Exploit
    Victim issues positioned write or @@IDENTITY via psqlODBC
  4. Execution
    Driver resolves name to attacker object
  5. Impact
    Expression runs or write redirected under victim role

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Case sensitivity handling
Exploitation Conditions

Exploitation requires an authenticated database user who holds privilege to CREATE a table in a schema that sits on another user's search_path (PR:L), and it only takes effect when the victim performs psqlODBC operations that resolve names against the catalog - positioned UPDATE/INSERT/DELETE, @@IDENTITY default evaluation, Parse=1 prepared statements that size the fetch buffer from a column type, SQLSpecialColumns()/SQLPrimaryKeys() lookups without a schema name, or SQLBulkOperations() with an application-supplied variable-length bookmark (UI:R). Several sub-cases are gated by specific deployment settings: the accent-folding collision needs a single-byte server encoding (LATIN1 or SQL_ASCII); the unfolded dotless-I case needs a non-Windows host in a Turkish or Azeri locale; the search_path redirection needs search_path to have changed by a means other than a plain SET. Limiting factors that reduce real-world risk: the attacker must already be a legitimate co-tenant with object-creation rights, the victim must actively use the driver on the colliding objects, and single-user or strictly-isolated-schema deployments are not exposed.

Impact

This is a genuine integrity-focused risk but not a mass-exploitation emergency. The input CVSS vector (CVSS:3.1/AV:N/AC:H/PR:L/UI:R) tells a consistent story with the description: the attacker must already hold a database account (PR:L) with privilege to create a table in a schema on the victim's search_path, the attack is conditional and multi-factor (AC:H), and it only triggers when the victim performs positioned updates/inserts/deletes or buffer-sized fetches through psqlODBC (UI:R). No EPSS score, no CISA KEV listing, and no PoC/exploit reference were supplied - only vendor advisories - so exploitation signals point to no public exploit identified at time of analysis rather than active, widespread abuse. The vuln.today Decision label is 'this_week', which is a prioritize-but-not-drop-everything signal, consistent with the high-but-not-critical 7.1 base score and the prerequisite of an authenticated co-tenant attacker. The real-world severity is driven by multi-tenant exposure: in a shared database where untrusted users can create objects in schemas on others' search_paths, the impact is high (expressions run under the victim's role; arbitrary rows of the cursor's table can be read, updated or deleted via forged bookmarks). The buffer overflow element (Parse=1 column-type confusion) adds a memory-safety dimension (A:H/C:H credible) but the description does not state it yields code execution, so treat that as an overflow of the application's buffer, not confirmed RCE.

Exploit ScenarioDerived

In a shared PostgreSQL database, a low-privileged user creates a table named to collide (by case-folding, ONLY/keyword confusion, or schema-ordering on search_path) with one the victim legitimately uses. When the victim runs a positioned UPDATE/INSERT/DELETE or an @@IDENTITY query through psqlODBC, the driver resolves the name to the attacker's object, so the write lands in the attacker's table or a default expression evaluates under the victim's role. No public exploit was identified in the provided data; exploitation requires both an authenticated attacker and victim-side action (high attack complexity).

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 25, 2026

psqlODBC through 18.00.0006 can resolve a statement's table or column name to a different catalog object than the PostgreSQL server would choose, letting a low-privileged, authenticated database user redirect another user's positioned UPDATE/INSERT/DELETE - or the driver's @@IDENTITY default evaluation - onto a table they control, where the statement runs with the victim's rights. Exploitation requires an authenticated user holding CREATE rights on a schema that sits on the victim's search_path, plus a victim who actively uses the driver against the colliding names (CVSS 3.1: 7.1, AV:N/AC:H/PR:L/UI:R), and several sub-cases are gated by deployment specifics such as LATIN1/SQL_ASCII server encoding, a Turkish or Azeri locale on a non-Windows host, Parse=1, or search_path changes made by means other than a plain SET. This is a genuine integrity-focused risk but not a mass-exploitation emergency; it is not reported as confirmed actively exploited (CISA KEV) and no public exploit identified at time of analysis, with vendor priority rated this_week.

RemediationAI

No vendor-released patch version is identified in the available data, so confirm the fixed release against the vendor advisory at https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-38cc-jj5v-wrg6 and the changelog at https://odbc.postgresql.org/changelog/ before upgrading, and track psqlODBC 18.00.0006 as the last known affected build. Where an upgrade cannot be applied immediately, the actionable compensating controls follow the failure modes in the advisory: revoke CREATE on any schema that appears on another role's search_path (this closes the name-collision redirection, at the cost of blocking legitimate co-tenant DDL); have applications fully qualify table and column names with explicit schema names instead of relying on search_path resolution (reduces but does not eliminate the cache and SQLSpecialColumns()/SQLPrimaryKeys() mismatches); avoid Parse=1 on statements whose fetch buffers are sized from described column types until patched (removes the buffer-overflow path but changes prepared-statement behavior and performance); avoid SQLBulkOperations() with application-supplied variable-length bookmarks, or restrict bookmark use to values the driver itself returned for the same cursor and WHERE clause (prevents forged-ctid row access, at the cost of that bulk-update pattern); prefer UTF-8 server encoding over LATIN1 or SQL_ASCII for databases driven by psqlODBC (sidesteps the accent-folding collision but requires a migration); and on non-Windows hosts in Turkish or Azeri locales, run the client under a non-Turkic locale environment (restores I/i folding but may affect other locale-dependent application behavior).

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause class is CWE-178, improper handling of case sensitivity, but the practical problem is broader: psqlODBC builds positioned updates and describes result columns by matching identifier strings from the application's SQL against the server catalog, and in several places its matching rules diverge from the server's. The divergences documented in the advisory are: a column-information cache that compares table and schema names case-insensitively, so a user's "Users" can be taken for another user's table and that table's column default evaluated to answer @@IDENTITY; "FROM ONLY t" parsed with ONLY treated as the table name; case-insensitive column comparison that, under Parse=1, lets another column's type decide the application's fetch buffer size, which a subsequent fetch overflows; in single-byte server encodings such as LATIN1 or SQL_ASCII, the server folds accented letters of unquoted names using its own locale while the driver folds only A-Z, so ÉTAT can be taken for another user's "État"; on non-Windows hosts in a Turkish or Azeri locale, an unquoted I is not folded to i, breaking keyword and ODBC function-name matching; SQLSpecialColumns() without a schema name can report key columns of another user's same-named temporary table, and SQLPrimaryKeys() can accept another user's <table>_pkey index as the primary key of a table that has none; positioned writes following a search_path change made by something other than a plain SET can land in the same-named table of the previously current schema; and SQLBulkOperations() trusts the ctid embedded in an application-supplied variable-length bookmark while ignoring the cursor's WHERE clause, so a forged bookmark can read, update or delete any row of the cursor's table. The trigger for each individual sub-case is described in the advisory, but which of them apply in a given deployment depends on encoding, locale, platform, driver options and how search_path is managed. CVSS metrics (AC:H, PR:L, UI:R) reflect that a co-tenant with object-creation rights must first place a colliding object and then wait for the victim's driver operations to resolve against it.

Know when Psqlodbc gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (PostgreSQL) PRIMARY 7.1 HIGH
AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 7.1 HIGH

Attacker needs a DB account with CREATE on a shared schema (PR:L) plus victim-side driver operations and specific locale/encoding conditions (AC:H, UI:R); impact runs under the victim's role so C/I/A:H, S:U.

3.1 AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (PostgreSQL).

CVSS VectorVendor: PostgreSQL

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

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.

Technical POC Analysis

CWE-178 (Improper Handling of Case Sensitivity), with CWE-706 (Use of Incorrectly-Resolved Name or Reference) also assigned: psqlODBC resolves identifiers in a client statement to catalog objects usi…

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

CVE-2026-136501 is a high-severity vulnerability in psqlODBC (through 18.00.0006) that could allow a low-privileged database user to redirect another user's data modification statements to a table they control, compromising data integrity. Organizations using this driver for PostgreSQL connectivity should address the risk, as it affects database operations and requires coordinated patching and access control measures.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: revoke CREATE privileges on schemas that are on other users' search_path, enforce a fixed search_path for all database users, avoid using @@IDENTITY for identity retrieval, and consider disabling Parse=1 if not required. Monitor vendor for updates.

Threat Intelligence Overview

EPSS Score
0.4%
Top 71% exploitable
Prevalence
Medium
PostgreSQL's ODBC driver; common in enterprise Windows-to-PostgreSQL integrations, not universal
Social Media
1
Sightings
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)CVE.org

cpe:2.3:a:postgresql:psqlodbc:*:*:*:*:*:*:*:*
CVE-2026-136507 HIGH
8.1 Nov 25

psqlODBC through 18.00.0006 parses and rebuilds connection strings in several ways that let an attacker-influenced value

CVE-2026-136502 HIGH
8.1 Nov 25

SQL injection in psqlODBC up to and including 18.00.0006 lets remote unauthenticated attackers run SQL with the applicat

CVE-2026-136500 HIGH
8.1 Nov 25

SQL injection in psqlODBC through 18.00.0006 lets an attacker who controls a bound character parameter or a name passed

CVE-2026-136515 HIGH
7.5 Nov 25

Heap corruption in psqlODBC through 18.00.0006 can crash an application or corrupt its memory when it processes attacker

CVE-2026-136505 HIGH
7.5 Nov 25

Extreme sizes and counts handled without range checks in psqlODBC's driver core let 16-bit counters and 2 GiB-scale size

CVE-2026-136509 HIGH
7.5 Nov 25

Heap corruption and driver crashes in psqlODBC (all versions up to and including 18.00.0006) stem from the driver not ve

CVE-2026-136506 HIGH
7.5 Nov 25

SQL injection in psqlODBC through crafted database, schema, table, column, operator, cursor, or parameter identifiers ca

CVE-2026-136512 HIGH
7.5 Nov 25

A client-side memory-corruption flaw in the PostgreSQL ODBC driver (psqlODBC) through 18.00.0006 causes the driver to wr

CVE-2026-136503 HIGH
7.5 Nov 25

Memory-safety defects across several code paths in psqlODBC, the PostgreSQL ODBC driver, allow a hostile or compromised

CVE-2026-120064 HIGH
7.5 Nov 02

Out-of-bounds reads and writes in psqlODBC before 18.00.0006 arise when a host application forwards untrusted column num

CVE-2026-120062 HIGH
7.5 Nov 02

SQL injection in psqlODBC before 18.00.0006 allows an attacker who can influence a table or schema name passed by a host

CVE-2026-120061 HIGH
7.5 Nov 02

A stack-based buffer overflow (CWE-121) in the psqlODBC driver, the official PostgreSQL ODBC driver, lets attacker-influ

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy