Skip to main content

PostgreSQL CVE-2026-116312

| EUVDEUVD-2026-124492 MEDIUM
Improper Preservation of Consistency Between Independent Representations of Shared State (CWE-1250)
2026-11-12 PostgreSQL GHSA-xqm8-qxc4-qxc9
5.4
CVSS 3.1 · Vendor: PostgreSQL
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with table write privilege
  2. Delivery
    Target partitioned table with AFTER trigger
  3. Exploit
    Craft MERGE performing INSERT before UPDATE
  4. Execution
    Trigger captures inconsistent transition state
  5. Persist
    AFTER trigger processes wrong new row
  6. Impact
    Corrupt 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

PostgreSQL 17 <17.12
PostgreSQL 15 <15.20
PostgreSQL 16 <16.16
PostgreSQL 18 <18.7

Affected Packages

euvd postgresql fix: 15.20, 16.16, 17.12, 18.7

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

Vendor (PostgreSQL) PRIMARY 5.4 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
vuln.today AI 5.4 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Red Hat 5.4 MEDIUM

Primary rating from Vendor (PostgreSQL).

CVSS VectorVendor: PostgreSQL

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

2
Patch available
Nov 12, 2026 - 15:02 EUVD
CVE Published
Nov 12, 2026 - 14:15 cve.org
MEDIUM 5.4

DescriptionCVE.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

EPSS Score
0.3%
Top 83% exploitable
Prevalence
Ubiquitous
PostgreSQL is a core database deployed across a huge fraction of environments
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2025-1094 HIGH POC
8.1 Feb 13

PostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl

CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2013-1899 MEDIUM POC
6.5 Apr 04

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

CVE-2026-20253 CRITICAL POC
9.8 Jun 10

Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.

CVE-2026-9586 CRITICAL POC
9.3 Jul 17

Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar

CVE-2017-7546 CRITICAL
9.8 Aug 16

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

CVE-2015-1352 MEDIUM POC
5.0 Mar 30

The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t

CVE-2024-10553 CRITICAL POC
9.8 Mar 20

A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra

CVE-2019-9193 HIGH POC
7.2 Apr 01

In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve

CVE-2026-40887 CRITICAL POC
9.1 Apr 14

Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the

CVE-2022-24760 CRITICAL POC
10.0 Mar 12

Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot

CVE-2025-56157 CRITICAL POC
9.8 Dec 18

Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy