Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with table write privilege
-
DeliveryTarget partitioned table with AFTER trigger
-
ExploitCraft MERGE performing INSERT before UPDATE
-
ExecutionTrigger captures inconsistent transition state
-
PersistAFTER trigger processes wrong new row
-
ImpactCorrupt trigger-driven data or logic
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Hardware access interface protection
|
| Exploitation Conditions | Exploitation requires an authenticated principal who is a 'table data modifier' - i.e. holds write (INSERT/UPDATE) privileges on the target table (PR:L). The target must be a partitioned table that has an AFTER trigger with transition-capture semantics, and the attacker must issue a MERGE that performs an INSERT before an UPDATE so the transition-capture state becomes inconsistent. Limiting factors: the table must be partitioned AND carry a relevant AFTER trigger whose correctness matters for security or integrity; without such a trigger the bug has no meaningful effect. Only PostgreSQL major versions 15 through 18 below the fixed minors (18.7, 17.12, 16.16, 15.20) are affected; versions before 15 are not. There is no remote unauthenticated path and no availability impact. |
| Impact | This is a moderate, low-urgency issue rather than an emergency. The CVSS vector (AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N, base 5.4) shows network reachability over a normal database connection with low attack complexity, but critically requires PR:L - the attacker must already be an authenticated 'table data modifier' with write access to the target table, which sharply limits the threat population to existing trusted or semi-trusted database principals. No EPSS score was provided, the CVE is not in CISA KEV, and no proof-of-concept or exploit reference is present beyond the vendor advisory, so there is no public exploit identified at time of analysis. The vuln.today decision label is 'this_month' (not act_now/emergency), consistent with the low partial impacts and authentication requirement. The impact is a correctness/consistency flaw (CWE-1250): an AFTER trigger processes the wrong new row during a partitioned-table MERGE, which can corrupt trigger-driven logic such as audit logs, access checks, or derived data - hence the low confidentiality and integrity scores and no availability impact. There is no conflict between the signals; all point to a real-but-bounded data-integrity bug exploitable only by someone already able to modify table data. Note the 'Information Disclosure' tag understates the issue - the integrity (I:L) and consistency nature are as or more relevant than disclosure. |
| Exploit ScenarioDerived | An authenticated database user who already holds write privileges on a partitioned table issues a crafted MERGE statement whose row routing performs an INSERT before an UPDATE, causing an AFTER trigger to fire against the wrong new row. If that trigger enforces security logic (audit trails, row-level checks, derived authorization data), the attacker can cause it to record or act on incorrect data, undermining integrity or leaking information through trigger side effects. No public exploit code is known; exploitation requires only an ordinary authenticated session with the necessary table privileges, so attack complexity is low. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 12, 2026
PostgreSQL 15 through 18 can cause an AFTER trigger using transition-table capture to process the wrong new row when a table data modifier runs a MERGE on a partitioned table that performs an INSERT before an UPDATE, creating inconsistent transition-capture state. The issue requires an authenticated user with INSERT/UPDATE privileges on a partitioned table that has a relevant AFTER trigger; it can affect integrity and disclose limited information but has no availability impact. Fixed releases are PostgreSQL 18.7, 17.12, 16.16, and 15.20; the supplied intelligence shows no CISA KEV entry and no public exploit identified at time of analysis, and the assigned priority is this_month.
RemediationAI
Vendor-released patch: upgrade to PostgreSQL 18.7, 17.12, 16.16, or 15.20 according to the deployed major version, as documented in the PostgreSQL security advisory at https://www.postgresql.org/support/security/CVE-2026-116312/. The provided advisory reference does not list a workaround; as a compensating control, restrict INSERT/UPDATE privileges on partitioned tables that carry relevant AFTER transition-table triggers to trusted roles and avoid MERGE statements that combine INSERT before UPDATE on those tables, recognizing that this reduces exposure but does not correct the underlying transition-capture defect.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is in PostgreSQL's MERGE handling and the transition-capture state used by AFTER triggers on partitioned tables. CWE-1250 describes improper preservation of consistency between independent representations of shared state; here, the transition-capture representations can diverge when a MERGE statement performs an INSERT before an UPDATE, so an AFTER trigger may receive or process the wrong new row. Exploitation requires a principal with write privileges (INSERT/UPDATE) on the target table (PR:L in the assessed vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N), a partitioned target table, and an AFTER trigger whose correctness matters. The affected scope is limited to PostgreSQL major versions 15 through 18 below the fixed minors 18.7, 17.12, 16.16, and 15.20; versions before PostgreSQL 15 are unaffected, and the provided CPE is a wildcard PostgreSQL identifier rather than a version-specific CPE.
Know when PostgreSQL gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Exploited over a normal DB connection (AV:N/AC:L) but only by a user already holding table write rights (PR:L); impact is mis-handled trigger data affecting integrity and limited disclosure, no availability loss.
Primary rating from Vendor (PostgreSQL).
CVSS VectorVendor: PostgreSQL
Lifecycle Timeline
2DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in PostgreSQL
View allPostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9, and 9.0.x before 9.0.13 allows re
Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.
Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar
PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allow
The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t
A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra
In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve
Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the
Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot
Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al
EUVD-2026-124492
GHSA-xqm8-qxc4-qxc9
NVD
CVE.org
EPSS
VulDB
Exploit-DB