{"id":"CVE-2026-116312","aliases":["CVE-2026-116312","BIT-POSTGRESQL-2026-116312"],"related":[],"kind":"vulnerability","state":"published","title":"PostgreSQL MERGE can place the wrong row in a trigger transition table","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-12T14:15:06.946Z","modified":"2026-11-27T06:45:44.641Z","severity":{"scorer":"PostgreSQL","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"PostgreSQL","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-1250"],"affected":[{"ranges":[{"type":"rpm","introduced":"18","fixed":"18.7","status":"affected"},{"type":"rpm","introduced":"17","fixed":"17.12","status":"affected"},{"type":"rpm","introduced":"16","fixed":"16.16","status":"affected"},{"type":"rpm","introduced":"15","fixed":"15.20","status":"affected"}],"product":"PostgreSQL","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"15.0.0","status":"affected","fixed":"15.20.0"},{"type":"semver","introduced":"16.0.0","status":"affected","fixed":"16.16.0"},{"type":"semver","introduced":"17.0.0","status":"affected","fixed":"17.12.0"},{"type":"semver","introduced":"18.0.0","status":"affected","fixed":"18.7.0"}],"ecosystem":"Bitnami","package":"postgresql","purl":"pkg:bitnami/postgresql","source":"bitnami"}],"references":[{"url":"https://www.postgresql.org/support/security/CVE-2026-116312/","tags":["web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116312","tags":["web"],"sources":["bitnami"]}],"credits":["The PostgreSQL project thanks Jacek Bylina, Timothy Ball, Jacob Robertson, Nigel Gott, and Claude and Ada Logics for reporting this problem."],"assigner":"PostgreSQL","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-17T17:07:58.003Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-116312","url":"https://www.cve.org/CVERecord?id=CVE-2026-116312","licence":"CVE Terms of Use","modified":"2026-11-17T17:14:43.345Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-116312","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116312","licence":"Public domain","modified":"2026-11-17T18:17:47.653Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-POSTGRESQL-2026-116312","url":"https://osv.dev/vulnerability/BIT-POSTGRESQL-2026-116312","licence":"Apache-2.0","modified":"2026-11-27T06:45:44.641Z"}],"updatedAt":"2026-11-27T07:07:20.163Z","epss":{"score":0.00254,"percentile":0.18114,"date":"2026-12-01T12:00:22.000Z"}}