Description
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.
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.
Analysis and contextual insights are available on OpenCVE Cloud.
Remediation
No vendor fix or workaround currently provided.
Additional remediation guidance may be available on OpenCVE Cloud.
Tracking
Sign in to view the affected projects.
Advisories
No advisories yet.
References
History
Wed, 25 Nov 2026 22:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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. | |
| Title | Statement after an abandoned parameter array sends the abandoned batch's rows instead of its own | |
| Weaknesses | CWE-665 | |
| References |
| |
| Metrics |
cvssV3_1
|
Subscriptions
No data.
Status: PUBLISHED
Assigner: PostgreSQL
Published:
Updated: 2026-11-25T22:25:51.005Z
Reserved: 2026-11-24T20:17:10.904Z
Link: CVE-2026-136510
No data.
No data.
No data.
OpenCVE Enrichment
No data.
Weaknesses
-
CWE-665
Improper Initialization