Skip to main content
EPSS 0.2%top 84%

CVE-2026-50736: CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in EnterpriseDB pglogical

0
Critical
Published: 07/28/2026 (07/28/2026, 19:17:00 UTC)
Source: CVE Database V5
Vendor/Project: EnterpriseDB
Product: pglogical

Description

The pglogical queue mechanism, used to convey out-of-band commands such as replicated DDL from a publisher to a subscriber, executes message payloads on the subscriber at the privilege level of the apply worker, which is equivalent to a PostgreSQL superuser in default installations. A party acting as the publisher can send crafted queue messages that cause arbitrary SQL to be executed on the subscriber as superuser, escalating from a role permitted to use pglogical to full superuser and breaking the isolation between tenants in shared deployments. To exploit the issue an attacker must be able to direct a subscription at an endpoint they control. In default installations this requires privileges normally reserved for a superuser, so the issue is most relevant to managed deployments where the ability to create subscriptions has been delegated to non-superuser roles.

CVSS v4.0

Score 9.0critical

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
High
Subsq. Integrity
High
Subsq. Availability
High
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Affected software

EnterpriseDB

pglogical

Affected versions
>=2 <2.4.8

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/29/2026, 15:22:24 UTC

Technical Analysis

The pglogical queue mechanism in EnterpriseDB's pglogical extension executes out-of-band commands such as replicated DDL on the subscriber at the privilege level of the apply worker, equivalent to a PostgreSQL superuser by default. This design flaw allows a publisher to send specially crafted queue messages that result in arbitrary SQL execution on the subscriber with superuser privileges. This effectively escalates privileges from a role allowed to use pglogical to full superuser, compromising tenant isolation in multi-tenant or shared deployments. Successful exploitation requires control over the subscription endpoint, which typically demands superuser privileges in default setups, limiting the vulnerability's impact to managed deployments where subscription creation is delegated to less privileged roles.

Potential Impact

An attacker with the ability to act as a publisher can execute arbitrary SQL commands on the subscriber database with superuser privileges. This leads to full privilege escalation and breaks tenant isolation in shared or multi-tenant environments. The vulnerability could allow unauthorized data access, modification, or disruption of the subscriber database. However, exploitation requires the attacker to control the subscription endpoint, which normally requires superuser privileges, limiting the risk to managed deployments with delegated subscription creation.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict the ability to create subscriptions to trusted superuser roles only. Avoid delegating subscription creation privileges to non-superuser roles in managed deployments. Monitor vendor communications for updates on patches or official mitigations.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
EDB
Date Reserved
2026-06-05T19:13:51.103Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6a68f3759c2644c7f803d87b

Added to database: 07/28/2026, 18:22:45 UTC

Last enriched: 07/29/2026, 15:22:24 UTC

Last updated: 09/12/2026, 22:01:34 UTC

Views: 77

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses