All vulnerabilities

Servers and applications

CVE-2026-116312

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

Severity
Medium 5.4
Published
12 Nov 2026
Last changed
12 Nov 2026
Added to UpHeron
13 Nov 2026
Fixed in
15.20, 16.16, 17.12, 18.7
Exploit chance
0.3% in the next 30 daysHigher than 16% of CVEs. EPSS by FIRST, 13 Nov 2026
Weakness
CWE-1250
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read some data · Change some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Sources
CVE Program

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.

From the CVE Program.

Affected software

SoftwareAffected versions
PostgreSQLServers and applications · cna:n/a|postgresql
  • From 15 before 15.20
  • From 16 before 16.16
  • From 17 before 17.12
  • From 18 before 18.7

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-116312