{"affected":[{"defaultStatus":"unaffected","product":"PostgreSQL","source":"CNA: PostgreSQL","vendor":"n/a","versions":[{"lessThan":"18.7","status":"affected","version":"18","versionType":"rpm"},{"lessThan":"17.12","status":"affected","version":"17","versionType":"rpm"},{"lessThan":"16.16","status":"affected","version":"16","versionType":"rpm"},{"lessThan":"15.20","status":"affected","version":"15","versionType":"rpm"}]}],"cveId":"CVE-2026-116312","cwes":["CWE-1250"],"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.","epss":null,"exploits":[],"kev":null,"metrics":[{"score":5.4,"severity":"medium","source":"CNA: PostgreSQL","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","version":"3.1"}],"modifiedAt":1794492906946,"publishedAt":1794492906946,"references":[{"source":"CNA: PostgreSQL","tags":[],"url":"https://www.postgresql.org/support/security/CVE-2026-116312/"}],"remediation":[],"revision":"9f5047f27b580cd2f3b312874dbb07c763e810b9aa14bb0578264799138f284d","sources":[{"modifiedAt":1794492906946,"name":"CNA: PostgreSQL","retrievedAt":1794496129843,"url":"https://www.cve.org/CVERecord?id=CVE-2026-116312"}],"ssvc":null,"status":"published","title":"PostgreSQL MERGE can place the wrong row in a trigger transition table","updatedAt":1794496129843}