
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-50736 is a privilege escalation vulnerability in the pglogical queue mechanism developed by EnterpriseDB, affecting pglogical versions 2.x before 2.4.8. The flaw allows an authenticated party acting as a publisher to send crafted queue messages that cause arbitrary SQL to be executed on the subscriber at superuser privilege level, breaking tenant isolation in shared/managed deployments. It was published on July 28, 2026, with a patch made available the same day. The vulnerability carries a CVSS v4.0 base score of 9.0 (Critical) (GitHub Advisory, EDB Advisory).
The root cause is classified as CWE-89 (SQL Injection) — the pglogical queue mechanism, which conveys 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 without adequate validation or sanitization. In default PostgreSQL installations, the apply worker runs with superuser-equivalent privileges, meaning a malicious publisher can inject arbitrary SQL commands that are executed with full database authority on the subscriber. Exploitation requires the attacker to control an endpoint to which a pglogical subscription is directed; in default installations this requires superuser privileges, but the vulnerability is most impactful in managed cloud deployments where subscription creation has been delegated to non-superuser roles (GitHub Advisory, EDB Advisory).
Successful exploitation allows an attacker to escalate from a role with pglogical subscription creation privileges to full PostgreSQL superuser on the subscriber instance, enabling complete database compromise including unauthorized data access, modification, and deletion. In multi-tenant managed deployments, this breaks tenant isolation, potentially exposing all tenants' data to the attacker. The CVSS v4.0 assessment reflects high impact across confidentiality, integrity, and availability for both the vulnerable and subsequent systems (GitHub Advisory, EDB Advisory).
pglogical.queue table) containing arbitrary SQL payloads disguised as replicated DDL commands.pg_logical_apply_worker); SQL commands executed as superuser that were not initiated by a known administrator session.pglogical.queue table, particularly messages with SQL payloads not consistent with normal replication DDL (e.g., CREATE USER, GRANT, COPY TO/FROM, pg_read_file).EnterpriseDB has released a patch in pglogical version 2.4.8; upgrading to this version or later is the primary recommended remediation (EDB Advisory). As interim workarounds: restrict subscription creation privileges exclusively to trusted superuser accounts; in managed deployments, audit and revoke delegation of subscription creation from non-superuser roles; implement network-level controls to restrict which publisher endpoints subscribers can connect to; and monitor the pglogical.queue table for anomalous message content (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."