Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCompromise upstream publisher node
-
ExploitSubscriber superuser replicates from it
-
ExecutionName system catalog as replication target
-
ImpactExecute arbitrary code as PostgreSQL OS user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Logical replication must be in use AND the vulnerable subscription must be owned by a superuser - the description states explicitly that only superuser-owned subscriptions are vulnerable, so subscriptions owned by non-superusers are not affected. The attacker must control or have compromised the publisher that the superuser's subscription replicates from, and the triggering action is the publisher naming a system catalog as a replication target. Limiting factors: the UI:R metric reflects that a superuser must first have created/owned the subscription (not a default state); the exact low-level mechanism by which naming a system catalog yields OS-level code execution is not detailed in the available source. Successful exploitation yields code execution as the operating-system user running PostgreSQL. |
| Impact | Signals are partly strong and partly gating. The CVSS 3.1 base score of 8.8 (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) reflects network reach, low complexity, and full confidentiality/integrity/availability loss via arbitrary code execution. However, the raw PR:N/AC:L framing understates a significant real-world precondition stated in the description: exploitation requires a subscription that is OWNED BY A SUPERUSER and a publisher under attacker control, and the UI:R flag reflects that a superuser must first have configured that subscription - so this is not a generic internet-facing, unauthenticated RCE against a default PostgreSQL install. The vuln.today Decision label is 'this_week' (not act_now/emergency). Exploitation status: no public exploit identified at time of analysis - KEV is not listed (not in CISA KEV), and no PoC or exploit reference is provided. EPSS is MISSING from the input and cannot be cited. No SSVC decision tree (automatable/technical-impact) was supplied, so that framework cannot be applied. Net: a genuinely serious code-execution flaw for environments that use logical replication with superuser-owned subscriptions, but its blast radius is constrained by that specific configuration rather than being a broadly automatable mass-exploitation issue; prioritize patching where logical replication is in use, consistent with the 'this_week' urgency. |
| Exploit ScenarioDerived | An attacker who controls or has compromised an upstream PostgreSQL publisher waits for (or induces) a downstream server whose superuser owns a logical-replication subscription to replicate from it. By naming a system catalog as the replication target, the malicious publisher abuses the missing authorization check to run arbitrary code as the operating-system account running PostgreSQL on the subscriber. No public exploit code is identified at time of analysis, and the scenario depends on a superuser-owned subscription already being configured (UI:R). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 12, 2026
Arbitrary code execution in PostgreSQL logical replication affects deployments running versions before 18.7, 17.12, 16.16, 15.20, and 14.25 when a subscription is owned by a superuser and replicates from a publisher the attacker controls or has compromised. The publisher can name a system catalog as a replication target, exploiting a missing authorization check to run code as the operating system user that runs PostgreSQL. The CVSS 3.1 vector is 8.8 (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H); the UI:R metric reflects that a superuser must have created or owned the subscription, and no public exploit or CISA KEV entry was identified at time of analysis, so remediation is scheduled for this week rather than treated as confirmed active exploitation.
RemediationAI
Upgrade PostgreSQL to the fixed release for your branch: 18.7, 17.12, 16.16, 15.20, or 14.25, as listed in the PostgreSQL advisory at https://www.postgresql.org/support/security/CVE-2026-120145/. Updating is the complete fix because it addresses the missing authorization check in logical replication. If upgrading must be staged, reduce exposure by ensuring logical replication subscriptions are owned by non-superuser roles, since the vendor states that only superuser-owned subscriptions are vulnerable; this is a compensating control and does not fix the underlying authorization flaw. Also treat publishers as trusted infrastructure, because exploitation requires the attacker to control or have compromised the publisher that a superuser-owned subscription replicates from, and restrict replication connectivity so untrusted systems cannot act as publishers.
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
PostgreSQL logical replication uses a publisher/subscriber model in which a subscriber creates a subscription that connects to a publisher and receives changes for selected tables or sequences. This CVE is a missing authorization flaw (CWE-862) in that path: a compromised publisher can name a system catalog as a replication target, and the subscription-side code does not adequately restrict that target, leading to arbitrary code execution as the operating system user running the superuser-owned subscription. The PostgreSQL project limits the vulnerability to subscriptions owned by a superuser; subscriptions owned by non-superusers are not affected. The CVSS vector indicates network reachability, low attack complexity, no privileges required on the attacker side, and user interaction (UI:R), which in this case corresponds to the superuser having created or owned the vulnerable subscription rather than a default configuration. The available source does not detail the exact low-level mechanism by which catalog naming results in OS-level code execution, so that trigger path should be treated as described by the vendor rather than independently reconstructed.
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:N/UI:R/S:U/C:H/I:H/A:H
Attacker on the publisher side needs no privileges on the target (PR:N) but relies on a superuser having configured the subscription (UI:R); the missing authz yields full OS-user code execution (C:H/I:H/A:H).
Primary rating from Vendor (PostgreSQL).
CVSS VectorVendor: PostgreSQL
Lifecycle Timeline
2DescriptionCVE.org
Missing authorization in PostgreSQL logical replication allows a compromised publisher to execute arbitrary code as the operating system user running the superuser-owned subscription, via naming a system catalog as a replication target. Only subscriptions owned by a superuser are vulnerable. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.
Articles & Coverage 1
Executive ViewAI
A high-severity vulnerability in PostgreSQL's logical replication feature could allow an attacker to execute arbitrary code on database servers, potentially compromising sensitive data and critical business systems. The risk is concentrated in environments where superuser-owned subscriptions replicate from untrusted publishers, requiring immediate inventory and remediation to prevent unauthorized access or service disruption.
Apply vendor patch.
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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
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-124419
GHSA-j3p3-grqw-h5vf
NVD
CVE.org
EPSS
VulDB
Exploit-DB