# CVE-2026-136510: Statement after an abandoned parameter array sends the abandoned batch's rows instead of its own

- Severity: Medium 4.8 (CVSS:3.1, scored by PostgreSQL) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Published: 2026-11-25T22:25:51.005Z
- Modified: 2026-11-30T15:28:09.390Z
- Weaknesses: CWE-665
- Assigned by: PostgreSQL

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

(As written by CVE List.)

## Affected

- psqlodbc: from 12.02.0000 up to 18.00.0006

## References

- <https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-9j2v-p4pj-f4wj> (vendor-advisory)
- <https://odbc.postgresql.org/changelog/> (release-notes)

## Sources

- CVE List: [CVE-2026-136510](https://www.cve.org/CVERecord?id=CVE-2026-136510), CVE Terms of Use, modified 2026-11-25
- NVD: [CVE-2026-136510](https://nvd.nist.gov/vuln/detail/CVE-2026-136510), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-136510 · Whole record: https://cve.day/CVE-2026-136510.json · Rebuilt by cve.day 2026-11-30T15:32:25.620Z
