PostgreSQL 15-18 MERGE transition-capture bug: wrong AFTER trigger row (<=18.6)
CVE-2026-116312 Published on November 12, 2026

PostgreSQL MERGE can place the wrong row in a trigger transition table
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.

NVD

Vulnerability Analysis

Exploitation:
NONE
Automatable:
NO
Technical Impact:
PARTIAL

Weakness Type

Improper Preservation of Consistency Between Independent Representations of Shared State

The product has or supports multiple distributed components or sub-systems that are each required to keep their own local copy of shared data - such as state or cache - but the product does not ensure that all local copies remain consistent with each other.


Products Associated with CVE-2026-116312

Want to know whenever a new CVE is published for PostgreSQL? stack.watch will email you.

Exploit Probability

EPSS
0.21%
Percentile
10.90%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.