CVE-2026-50736: SQL Injection
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
For shared/managed deployments, prevent delegated (non-superuser) roles from directing pglogical subscriptions at endpoints they control; restrict who can create subscriptions and where they may point to so an attacker cannot direct a subscription at an endpoint they control.
- Compensating control
Isolate and strictly control network access for pglogical publisher/subscriber endpoints so that only authorized subscribers can receive pglogical queue messages (limit exposure of subscriber endpoints to untrusted parties).
Event History
Frequently Asked Questions
What is the severity of CVE-2026-50736?
CVE-2026-50736 has a risk rating of 60, indicating a moderate security vulnerability.
How do I fix CVE-2026-50736?
To fix CVE-2026-50736, ensure that pglogical is updated to its latest version where the vulnerability is addressed.
What systems are affected by CVE-2026-50736?
CVE-2026-50736 affects PostgreSQL installations using the pglogical extension.
What are the potential impacts of CVE-2026-50736?
The vulnerability may allow unauthorized execution of commands at superuser privilege levels on the subscriber.
Is CVE-2026-50736 an SQL injection vulnerability?
Yes, CVE-2026-50736 is categorized under SQL Injection vulnerabilities.