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

> Applications using psqlODBC parameter-array execution may silently store rows or write past an array status pointer after a failed batch.

- **Severity:** Medium 4.8 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Harmful if only installed:** No
- **Needs a specific call:** Yes (`SQLCancel`, `SQLPutData`, `SQLExecDirect`)
- **Fix available:** No
- **Published:** 25 Nov 2026
- **Updated:** 25 Nov 2026
- **Also known as:** GHSA-9j2v-p4pj-f4wj, UBUNTU-CVE-2026-136510

## What is CVE-2026-136510?

CVE-2026-136510 is a medium-severity other vulnerability in PostgreSQL psqlODBC, published on 25 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-665 (Improper Initialization)

## Which versions are affected by CVE-2026-136510?

An affected version is only exploitable if your software calls SQLCancel, SQLPutData or SQLExecDirect. Many projects that include it are not exposed.


## How do I fix CVE-2026-136510?

No fix has been published for CVE-2026-136510 yet. Limit exposure of the affected software until one is available.

## Is CVE-2026-136510 being exploited?

There is no known exploitation of CVE-2026-136510 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-136510 and fix it if it is affected.

What it is: CVE-2026-136510 is a medium-severity other vulnerability in PostgreSQL psqlODBC, published on 25 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-136510 in the wild and no public exploit code.
Exposure: An affected version is only exploitable if your software calls SQLCancel, SQLPutData or SQLExecDirect. Many projects that include it are not exposed.

Affected product: PostgreSQL psqlODBC. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
   If an affected version is present, also search the code for calls to SQLCancel, SQLPutData or SQLExecDirect and report whether any exist.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-136510/ (Markdown: https://insights.sbomify.com/CVE-2026-136510/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-136510
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-136510
- OSV: https://osv.dev/vulnerability/CVE-2026-136510

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-136510/
Summaries are generated and may contain mistakes; the official description above is the record.
