Bug 2584544 (CVE-2026-136510)

Summary: CVE-2026-136510 postgresql-odbc: postgresql-odbc: Unintended statement execution via failed parameter-array batch
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: rhel-process-autobot, watson-tool-maintainers
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in postgresql-odbc. When a batched parameter-array query fails partway through, the driver does not properly clear previously queued rows from the statement handle. An attacker who controls input data in an application can trigger a conversion failure or canceled batch, causing subsequent operations on the same connection to silently execute the abandoned rows. This issue can compromise database integrity by recording operations the application reported as failed and, in certain configurations, lead to an out-of-bounds memory write.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-11-25 22:32:03 UTC
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.