psqlODBC
CVE-2026-136510
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessControl one value in array insert
-
DeliveryTrigger parameter-conversion failure or abandon data-at-execution batch
-
ExploitFailed rows left queued on statement handle
-
ExecutionNext execution silently sends queued rows
-
ImpactRows stored while failure log becomes no-op
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Proper initialization
|
| Exploitation Conditions | Requires an application running psqlODBC 12.02.0000-18.00.0006 that uses batched parameter-array execution, plus either a data-at-execution batch abandoned by SQLCancel or a rejected SQLPutData, OR a later row that fails during parameter conversion; and an end user able to control at least one value in that application's array insert. Exploitation also depends on the application reusing the same statement handle after the failure (for example to log the error). Limiting factors that reduce real-world risk: there is no SQL injection - the statements that run are the application's own, correctly quoted text, with no attacker-supplied SQL; the flaw only exists in applications that actually use batched parameter arrays (a feature introduced in 12.02.0000); and AC:H reflects the precise failure-then-reuse ordering needed. The memory-corruption variant (writing past the end of SQL_ATTR_PARAM_STATUS_PTR) additionally requires the next statement on the handle to supply a shorter status-pointer array. |
| Impact | Overall this is a medium-severity, lower-urgency issue. The provided CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L, base 4.8) describes a state-management flaw with low integrity and low availability impact and NO confidentiality impact - note this directly contradicts the 'Information Disclosure' tag, since C:N means nothing is disclosed; the real harm is silent data persistence and a memory over-write, not a leak. Exploitation status: no KEV entry, no EPSS score supplied, and no public exploit identified at time of analysis (the only references are a GHSA advisory and the project changelog, neither of which is working exploit code). The vuln.today decision label is 'this_month', consistent with AC:H and the absence of active-exploitation signals - this is a fix-on-normal-cycle item, not an emergency. The main caveat is attack vector: CVSS marks AV:N, but the actual trigger is an end user controlling one value in an application's own array insert, so reachability depends entirely on whether that application exposes array inserts to untrusted input - verify against the specific deployment rather than assuming blanket network exploitability. No SSVC automatable/technical-impact fields were supplied to cross-check. |
| Exploit ScenarioDerived | An end user who controls a single value in an application's batched parameter-array insert supplies input that either forces a later row to fail parameter conversion, or abandons a data-at-execution batch via SQLCancel/rejected SQLPutData. The queued rows left on the statement handle are then flushed by the next execution on that handle, so data the application believed had failed is silently committed while its failure-log statement returns SQL_SUCCESS without running. No public exploit code is available, and the high attack complexity (AC:H) reflects the specific failure-then-reuse sequence required. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 25, 2026
State leakage in the PostgreSQL ODBC driver psqlODBC (12.02.0000 through 18.00.0006) lets rows from an abandoned batched parameter-array execution be transmitted to the server by the next SQLExecDirect issued on the same statement handle, which then returns SQL_SUCCESS without sending its own statement - so a failed batch's rows are silently stored while the application's follow-up statement, such as an error log entry, becomes a no-op. An end user who controls a single value in an application's array insert can arrange both halves of this, and a second route triggers without data-at-execution parameters when a later row fails during parameter conversion, sending queued rows into whatever transaction and session context is current; one variant also writes past the end of a shorter SQL_ATTR_PARAM_STATUS_PTR array provided by the next statement. No SQL injection is involved - the statements executed are the application's own correctly quoted text - and exploitation requires a specific failure-then-handle-reuse ordering (AC:H), with no public exploit identified at time of analysis.
RemediationAI
Patch available per vendor advisory: consult GHSA-9j2v-p4pj-f4wj and the psqlODBC changelog (https://odbc.postgresql.org/changelog/) and upgrade to a release newer than 18.00.0006; the supplied data does not name the exact fixed version, so confirm it against the advisory before rolling out. Until an upgrade is possible, the mechanism itself points to compensating controls with known trade-offs: do not reuse a statement handle after a batched parameter-array execution fails - free and reallocate the handle (SQLFreeHandle/SQLFreeStmt) or use a separate connection for the error-logging statement, at the cost of extra connection or handle churn and possible loss of transaction-local state on the discarded handle; avoid batched parameter arrays in favour of single-row execution (for example executing each row individually rather than via SQL_ATTR_PARAM_ARRAY_ROW_COUNTS) where throughput allows, which removes both described trigger paths; and size SQL_ATTR_PARAM_STATUS_PTR arrays to match the parameter set exactly, since the out-of-bounds variant requires the next statement on the handle to supply a shorter status-pointer array. Applications should verify that an injected value in an array insert cannot be paired with a batch failure, and should treat a SQL_SUCCESS return on a handle previously used for a failed batch as untrusted until the driver is patched.
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 flaw is classified as CWE-665 (Improper Initialization) in the ODBC layer of psqlODBC: when a parameter-array batch execution fails part-way, the driver does not reset the statement handle's pending row queue, so the rows already queued for transmission survive the failure. Two trigger paths are described. The first requires data-at-execution parameters, where a batch is abandoned either by SQLCancel or by a SQLPutData call the driver rejects. The second requires no data-at-execution parameter at all: when conversion of a parameter in a later row fails, the previously queued rows are still handed to the server ahead of the next parameter array on that handle, inside whatever transaction and session settings are in effect at that later moment. A further variant writes past the end of a shorter SQL_ATTR_PARAM_STATUS_PTR array supplied by the next statement on the handle, which is where the low availability impact (A:L) originates. The defect was introduced with batched parameter-array execution in psqlODBC 12.02.0000, meaning any application that does not use parameter arrays is not exposed to this behaviour; the CPE record (cpe:2.3:a:postgresql:psqlodbc:*:*:*:*:*:*:*:*) is an unpinned wildcard, so the authoritative version boundary remains the 12.02.0000-18.00.0006 range stated in the advisory. Because the executed SQL is the application's own already-quoted statement text with no externally supplied SQL, the issue is a correctness and state-isolation defect rather than an injection primitive.
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:N/UI:N/S:U/C:N/I:L/A:L
AC:H because a specific failure-then-handle-reuse sequence is required; PR:N as the triggering end user needs no app authentication; C:N since nothing is disclosed, with only low integrity and availability impact.
Primary rating from Vendor (PostgreSQL).
CVSS VectorVendor: PostgreSQL
DescriptionCVE.org
A parameter-array execution that fails part-way leaves the rows it has already queued on the statement handle, and the next execution on that handle sends them. After a data-at-execution batch is abandoned, by SQLCancel or a rejected SQLPutData, the next SQLExecDirect sends the failed batch's rows and returns SQL_SUCCESS without sending its own statement.
So an application that logs the failure on the same handle has its log entry turned into a silent no-op, while rows it was told had failed are stored. An end user who controls one value in an application's array insert can arrange both halves of that.
A second route needs no data-at-execution parameter: when building a later row fails in parameter conversion, the queued rows go to the server ahead of the next parameter array on the handle, inside whatever transaction and session settings are current by then. One variant also writes past the end of a shorter SQL_ATTR_PARAM_STATUS_PTR array supplied by the next statement.
The statements that run are the application's own, correctly quoted; no SQL text comes from outside.
Versions from psqlODBC 12.02.0000, which introduced batched parameter-array execution, up to and including 18.00.0006 are affected.
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
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