CVE-2026-116312

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

Medium published · updated

5.4
CVSS score out of 10 · NVD (f86ef6dc-4d3a-42ad-8f28-e6d5547a5007)

Description

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 products and versions

Product / packageEcosystem / vendorVersionsFixed inSource
postgresql n/a 18 → <18.7; 17 → <17.12; 16 → <16.16; 15 → <15.2015.20 CVE.org

References