psqlODBC
CVE-2026-136501
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain DB account with CREATE on a shared schema
-
DeliveryCreate spoofed/colliding table on victim's search_path
-
ExploitVictim issues positioned write or @@IDENTITY via psqlODBC
-
ExecutionDriver resolves name to attacker object
-
ImpactExpression 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). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
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.
Primary rating from Vendor (PostgreSQL).
CVSS VectorVendor: PostgreSQL
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.
Articles & Coverage 2
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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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
psqlODBC through 18.00.0006 parses and rebuilds connection strings in several ways that let an attacker-influenced value
SQL injection in psqlODBC up to and including 18.00.0006 lets remote unauthenticated attackers run SQL with the applicat
SQL injection in psqlODBC through 18.00.0006 lets an attacker who controls a bound character parameter or a name passed
Heap corruption in psqlODBC through 18.00.0006 can crash an application or corrupt its memory when it processes attacker
Extreme sizes and counts handled without range checks in psqlODBC's driver core let 16-bit counters and 2 GiB-scale size
Heap corruption and driver crashes in psqlODBC (all versions up to and including 18.00.0006) stem from the driver not ve
SQL injection in psqlODBC through crafted database, schema, table, column, operator, cursor, or parameter identifiers ca
A client-side memory-corruption flaw in the PostgreSQL ODBC driver (psqlODBC) through 18.00.0006 causes the driver to wr
Memory-safety defects across several code paths in psqlODBC, the PostgreSQL ODBC driver, allow a hostile or compromised
Out-of-bounds reads and writes in psqlODBC before 18.00.0006 arise when a host application forwards untrusted column num
SQL injection in psqlODBC before 18.00.0006 allows an attacker who can influence a table or schema name passed by a host
A stack-based buffer overflow (CWE-121) in the psqlODBC driver, the official PostgreSQL ODBC driver, lets attacker-influ
NVD
CVE.org
EPSS
GitHub
Exploit-DB