Skip to main content

psqlODBC CVE-2026-136506

HIGH
SQL Injection (CWE-89)
2026-11-25 PostgreSQL
7.5
CVSS 3.1 · Vendor: PostgreSQL
View

Attack ChainAIDerived

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

  1. Access
    Authenticate with object-creation or name-supply rights
  2. Exploit
    Create object or supply identifier with crafted SQL name
  3. Execution
    Driver interpolates name unescaped into query
  4. Impact
    Server executes injected SQL as application role

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the attacker to control a crafted identifier that psqlODBC interpolates without escaping, in one of these specific sinks: the database name in SQLForeignKeys(); the current schema name in catalog functions; the table name in the currtid2() re-read of updatable cursors; column names placed into the SET list of SQLSetPos()/SQLBulkOperations() UPDATEs and the column list of SQL_ADD INSERTs (these come from the catalog and were NOT covered by the 18.00.0006 fix); cursor names from SQLSetCursorName() or returned refcursors (FetchRefcursors=1); parameter names (SQL_DESC_NAME) in procedure calls; or the OID-comparison operator in SQLColumns() resolved via search_path. Concretely, the attacker must either be a database user with rights to create a database, schema, table, column, or operator with a malicious name, OR an end user able to supply a cursor or parameter name to the application. Limiting factors: this is not reachable in default use without such privileged object-creation rights or name-supply paths (hence PR:L and AC:H), and the driver (any version up to and including 18.00.0006) must be in use; patching to 18.00.0006 does NOT remediate this issue.

Impact

This is a genuine but conditional priority, not a drive-by remote threat. The input CVSS vector (AV:N/AC:H/PR:L/UI:N) already encodes the key constraint: PR:L means an authenticated/privileged foothold is required (a database role able to create a database, schema, table, column, or operator - or an application that passes attacker-controlled cursor/parameter names into the driver), and AC:H signals the attacker must control a crafted object/identifier name rather than hit a default path. C:H/I:H/A:H reflects that successful injection runs arbitrary SQL with the application's database role, which can be high-impact. No EPSS score, no CISA KEV entry, and no PoC/exploit reference are present in the supplied data, so there is no public exploit identified at time of analysis and no evidence of active exploitation; the only signals pushing urgency are the vendor advisory (GHSA-63r4-gjcj-f69v) and the 'this_week' decision label. Important caveat on completeness: the trigger mechanism is well described (unescaped interpolation of names), but no fixed version for THIS CVE is given in the evidence - 18.00.0006 fixed the related CVE-2026-120065/GHSA-9cg8-r57h-h6jj but is explicitly still affected by this one, so defenders cannot assume patching to 18.00.0006 resolves it. Net: treat as a real same-week remediation item for environments where untrusted users hold object-creation rights or supply identifiers to a psqlODBC application, but it is not a mass-exploitable network bug.

Exploit ScenarioDerived

A low-privileged PostgreSQL user who can create a schema, table, column, or operator defines one with a crafted name containing SQL syntax; when the application's psqlODBC driver runs a catalog function, keyset re-read, or SQLSetPos()/SQLBulkOperations() update/insert, it interpolates that name unescaped and executes the attacker's SQL with the application role's rights. Alternatively, an end user who can influence a cursor or parameter name passed to the application reaches the same sink. No public exploit code is identified in the provided data, and exploitation has elevated complexity (AC:H) because the attacker must control a specially crafted identifier.

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

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

Alert me

AnalysisAIv1 – Nov 25, 2026

SQL injection in psqlODBC through crafted database, schema, table, column, operator, cursor, or parameter identifiers can let an authenticated database user with object-creation rights - or an end user who can supply cursor or parameter names to the application - execute SQL with the application's database role privileges. All versions up to and including 18.00.0006 are affected, and the 18.00.0006 fix for the related CVE-2026-120065 does not cover the SQLSetPos()/SQLBulkOperations() column-name sinks. No public exploit identified at time of analysis.

RemediationAI

No vendor-released patch identified at time of analysis; psqlODBC 18.00.0006 is not a complete remediation because it does not cover the SQLSetPos()/SQLBulkOperations() column-name sinks. Track the vendor advisory at https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-63r4-gjcj-f69v and the changelog at https://odbc.postgresql.org/changelog/ for a fixed release. Until then, restrict CREATE DATABASE, CREATE SCHEMA, CREATE TABLE, ALTER TABLE ... ADD COLUMN, and CREATE OPERATOR privileges to trusted roles so untrusted users cannot create crafted identifiers; this reduces exposure but may break legitimate schema-management workflows. Validate or allowlist end-user-supplied cursor names and SQL_DESC_NAME parameter names before they reach ODBC APIs, rejecting unexpected identifier characters; this can reject legitimate names if the allowlist is too narrow. Avoid FetchRefcursors=1 where refcursor names can be influenced by untrusted users, with the trade-off that refcursor-dependent application features may stop working. Run the application's database role with least privilege so injected SQL cannot exceed the rights the application legitimately needs.

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

psqlODBC constructs its own SQL statements from identifiers such as database, schema, table, column, cursor, and parameter names without escaping or qualification. The affected sinks identified in the supplied data include the database name in SQLForeignKeys(), the current schema name in catalog functions, the table name in the currtid2() re-read of updatable cursors, column names in SQLSetPos() and SQLBulkOperations() UPDATE SET lists and SQL_ADD INSERT column lists, cursor names set with SQLSetCursorName() or returned as refcursors when FetchRefcursors=1, parameter names (SQL_DESC_NAME) in procedure calls, and the OID-comparison operator in SQLColumns() resolved through search_path. This is CWE-89 SQL injection: the driver interpolates attacker-influenced identifiers into SQL text. The CPE cpe:2.3:a:postgresql:psqlodbc:*:*:*:*:*:*:*:* covers psqlODBC versions through 18.00.0006. Exploitation is conditional: the actor must control one of those identifiers via database object-creation rights or via a cursor or parameter name supplied to the application, which is consistent with the assessed CVSS vector requiring low privileges and high attack complexity.

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.5 HIGH
AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.5 HIGH

Network-reachable through the application DB connection (AV:N), but requires attacker-controlled crafted identifiers and object-creation or name-supply privileges, so AC:H and PR:L; injected SQL runs as the app role, giving C/I/A:H.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:N/PR:L/UI:N/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
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

psqlODBC builds queries of its own from names, and put these names into them without escaping or qualification:

  • the database name in SQLForeignKeys();
  • the current schema name in catalog functions;
  • the table name in the currtid2() call that re-reads rows of updatable cursors;
  • column names in the inserts and updates of SQLSetPos() and SQLBulkOperations();
  • cursor names set with SQLSetCursorName() or returned as refcursors (FetchRefcursors=1);
  • parameter names (SQL_DESC_NAME) in procedure calls;
  • the = operator in an OID comparison in SQLColumns(), which the server resolves through search_path.

The column names of the fourth item are a variant of CVE-2026-120065 (GHSA-9cg8-r57h-h6jj). The fix for that advisory, in 18.00.0006, doubles " in the stored row-identifier name, which the keyset queries and the WHERE clause of the positioned statements use. The column names that SQLSetPos() and SQLBulkOperations() put into the SET list of their UPDATE and into the column list of their SQL_ADD INSERT come from the catalog and were not covered by it, so a driver patched to 18.00.0006 is still affected by this one.

A database user who can create a database, schema, table, column or operator with a crafted name, or an end user who supplies a cursor or parameter name to the application, can run SQL with the rights of the application's database role.

Versions up to and including psqlODBC 18.00.0006 are affected.

Technical POC Analysis

CWE-89 (Improper Neutralization of Special Elements used in an SQL Command), with a secondary CWE-706 flavour for the OID-comparison vector.

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

A high-severity SQL injection vulnerability in psqlODBC, a widely used database driver, allows authenticated users with object-creation rights to execute arbitrary SQL with application privileges. This affects any organization using the driver to connect applications to PostgreSQL, potentially leading to data breaches or unauthorized access. Leadership should prioritize remediation due to the sensitive nature of database interactions and the lack of a vendor patch.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include restricting object-creation rights to trusted users, validating and sanitizing all user-supplied identifiers at the application layer, and enforcing least-privilege database roles.

Threat Intelligence Overview

EPSS Score
0.5%
Top 69% exploitable
Prevalence
Medium
official PostgreSQL ODBC driver, common in Windows-to-PostgreSQL integrations but not ubiquitous
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

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.5%
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

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

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

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-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

CVE-2026-120058 HIGH
7.5 Nov 02

Heap out-of-bounds write in the psqlODBC driver (CWE-787) affects all versions before 18.00.0006 and is reachable only w

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