{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-116312","id":"CVE-2026-116312","title":"PostgreSQL wrong-row trigger processing in partitioned MERGE","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.","descriptionLong":"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.","published":"2026-11-12T14:15:06.946Z","updated":"2026-11-17T18:17:47.653Z","reserved":"2026-10-26T03:52:44.052Z","status":"Awaiting Analysis","rejected":false,"assigner":"PostgreSQL","metric":{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"PostgreSQL"},"metrics":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"PostgreSQL"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007"}],"rating":"medium","products":["PostgreSQL"],"affectedProducts":[{"vendor":"n/a","product":"PostgreSQL","defaultStatus":"unaffected","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"}],"platforms":[]}],"packages":[],"cwes":["CWE-1250"],"aliases":[],"references":[{"url":"https://www.postgresql.org/support/security/CVE-2026-116312/","tags":[]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00251,"epssPercentile":0.16797,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-116312","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116312","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-116312","ok":false,"note":"no open-source package data"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-116312","ok":true,"note":"scored 2026-11-20"}],"aiTitle":true,"tech":["postgresql"],"critical":[],"attention":null}