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

State
Published
Severity
5.4 Medium
Published
Nov 12, 2026
Updated
Nov 17, 2026
Reserved
Oct 26, 2026

Read the record on cve.org

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.

ProductVersions
PostgreSQL n/a18 to before 18.7 Affected17 to before 17.12 Affected16 to before 16.16 Affected15 to before 15.20 Affected

Weaknesses

  • CWE-1250 Improper Preservation of Consistency Between Independent Representations of Shared State

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.