Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with object-creation or name-supply rights
-
ExploitCreate object or supply identifier with crafted SQL name
-
ExecutionDriver interpolates name unescaped into query
-
ImpactServer 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
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.
Primary rating from Vendor (PostgreSQL).
CVSS VectorVendor: PostgreSQL
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.
Articles & Coverage 2
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
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.
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
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
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
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
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
Heap out-of-bounds write in the psqlODBC driver (CWE-787) affects all versions before 18.00.0006 and is reachable only w
NVD
CVE.org
EPSS
GitHub
Exploit-DB