{"affected":[{"defaultStatus":"unaffected","ecosystem":"https://odbc.postgresql.org/","packageName":"psqlodbc","product":"psqlODBC","source":"CNA: PostgreSQL","vendor":"PostgreSQL","versions":[{"lessThanOrEqual":"18.00.0006","status":"affected","version":"12.02.0000","versionType":"custom"}]}],"cveId":"CVE-2026-136510","cwes":["CWE-665"],"description":"A parameter-array execution that fails part-way leaves the rows it has already\nqueued on the statement handle, and the next execution on that handle sends\nthem. After a data-at-execution batch is abandoned, by SQLCancel or a\nrejected SQLPutData, the next SQLExecDirect sends the failed batch's rows\nand returns SQL_SUCCESS without sending its own statement.\n\nSo an application that logs the failure on the same handle has its log entry\nturned into a silent no-op, while rows it was told had failed are stored. An\nend user who controls one value in an application's array insert can arrange\nboth halves of that.\n\nA second route needs no data-at-execution parameter: when building a later row\nfails in parameter conversion, the queued rows go to the server ahead of the\nnext parameter array on the handle, inside whatever transaction and session\nsettings are current by then. One variant also writes past the end of a shorter\nSQL_ATTR_PARAM_STATUS_PTR array supplied by the next statement.\n\nThe statements that run are the application's own, correctly quoted; no SQL\ntext comes from outside.\n\nVersions from psqlODBC 12.02.0000, which introduced batched parameter-array\nexecution, up to and including 18.00.0006 are affected.","epss":null,"exploits":[],"kev":null,"metrics":[{"score":4.8,"severity":"medium","source":"CNA: PostgreSQL","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L","version":"3.1"},{"score":4.8,"severity":"medium","source":"NVD: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L","version":"3.1"}],"modifiedAt":1795648644203,"publishedAt":1795645551005,"references":[{"source":"CNA: PostgreSQL","tags":["vendor-advisory"],"url":"https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-9j2v-p4pj-f4wj"},{"source":"CNA: PostgreSQL","tags":["release-notes"],"url":"https://odbc.postgresql.org/changelog/"},{"source":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","tags":[],"url":"https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-9j2v-p4pj-f4wj"},{"source":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","tags":[],"url":"https://odbc.postgresql.org/changelog/"}],"remediation":[],"revision":"d47209b331506ec085d9cbc994beecc443e1c90ab89ff52bc4699dfc30fcf755","sources":[{"modifiedAt":1795645551005,"name":"CNA: PostgreSQL","retrievedAt":1795648136972,"url":"https://www.cve.org/CVERecord?id=CVE-2026-136510"},{"modifiedAt":1795648644203,"name":"NVD","retrievedAt":1795652271208,"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-136510"}],"ssvc":null,"status":"published","title":"Statement after an abandoned parameter array sends the abandoned batch's rows instead of its own","updatedAt":1795652271208}