CVE-2026-116312: PostgreSQL MERGE can place the wrong row in a trigger transition table
Vulnerability summary
CVE-2026-116312 is a medium (CVSS 5.4) vulnerability in postgresql-18. EPSS estimates a 0.25% chance of exploitation in the next 30 days, higher than 18% of scored vulnerabilities.
Not severe (CVSS 5.4, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 11 · Related 5Timeline
- 12-11-2026PublishedVulnerability first disclosed.
- 17-11-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- NVDNIST5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- OSV · AlpineEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- OSV · UbuntuEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
EPSS trend
Probability
0.25%
Chance of exploitation in the next 30 days
Percentile
18%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu7 products
- postgresql-10All versions (No fix recorded)
- postgresql-12All versions (No fix recorded)
- postgresql-14All versions (No fix recorded)
- postgresql-16All versions (No fix recorded)
- postgresql-18All versions (No fix recorded)
Alpine4 products
- postgresql15< 15.20-r0
- postgresql16< 16.16-r0
- postgresql17< 17.12-r0
- postgresql18< 18.7-r0
Debian3 products
- postgresql-15All versions (No fix recorded) | < 15.20-0+deb12u1
- postgresql-17All versions (No fix recorded) | < 17.12-0+deb13u1
- postgresql-18All versions (No fix recorded) | < 18.7-1
3 vendors · 14 products