CVE-2026-116312

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

  • Medium 5.4

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.

Key facts

Published
12 Nov 2026
Last changed
12 Nov 2026
Assigned by
PostgreSQL
EPSS
0.251% likely to be exploited in the next 30 days, higher than 16.592% of CVEs (scores for 15 Nov 2026)

Severity scores

Each score is shown as its source gave it. They are not averaged or merged.

  • 5.4CVSS 3.1, Mediumfrom the CNA (PostgreSQL)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Historical context and remediation

This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.

No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.

No explicit remediation statement is available on this page yet. Consult the original record and vendor references before choosing a fix.

Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.

Read the original CVE record.

Affected products

VendorProductVersions
n/aPostgreSQL
  • Default status: unaffected
  • 18 up to but excluding 18.7 (affected)
  • 17 up to but excluding 17.12 (affected)
  • 16 up to but excluding 16.16 (affected)
  • 15 up to but excluding 15.20 (affected)

Timeline

  1. 12 Nov 2026 Published

Weakness

References