CVE-2026-116312

published 12 Nov 2026 · updated 17 Nov 2026

PostgreSQL MERGE can place the wrong row in a trigger transition table

5.4MediumCVSS 5.4EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 15.20, 16.16, 17.12 and 1 more.

Inconsistent transition-capture state in PostgreSQL MERGE allows a table data modifier to make an AFTER trigger process the wrong new row, via a partitioned table MERGE that performs an INSERT before an UPDATE. Within major versions 15-18, minor versions before PostgreSQL 18.7, 17.12, 16.16, and 15.20 are affected. Versions before PostgreSQL 15 are unaffected.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
>=15 <15.20, >=16 <16.16, >=17 <17.12, >=18 <18.715.20, 16.16, 17.12, 18.7

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-116312 severity on Zeptric[![CVE-2026-116312](https://zeptric.io/badge/cve/CVE-2026-116312.svg)](https://zeptric.io/cve/CVE-2026-116312)