First Published: 2026/07/28
Last Updated: 2026/07/28
Summary
When applying replicated changes for a row that is missing one or more columns, pglogical evaluates the affected table's default expressions on the subscriber. Because the apply worker runs at a privilege level equivalent to a PostgreSQL superuser in default installations, any function invoked by such a default expression also runs at that privilege. A party acting as the publisher can use this path to cause functions to be executed on the subscriber as superuser, escalating from a role permitted to use pglogical to full superuser.
This is a second, independent path to the same superuser escalation tracked under CVE-2026-50736 (the pglogical queue issue). 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.
Vulnerability details
CVE-ID: CVE-2026-50737
CVSS Base Score: 9.0
CVSS Temporal Score: Undefined
CVSS Environmental Score: Undefined
CVSS Vector: 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 products and versions
- Affected Product: pglogical
- Affected Versions: All versions of pglogical 2.x prior to 2.4.8
Remediation/fixes
Impacted users must upgrade to a fixed version of pglogical. A fix will be made available in the next release of pglogical 2.
| Product | VRMF | Remediation/First Fix |
|---|---|---|
| pglogical | All 2.x versions prior to 2.4.8 | Update to latest supported version (at least 2.4.8) |
References
Related information
Acknowledgement
Source: Reported to EDB by Mehmet Ince (@mdisec) through the EDB Vulnerability Disclosure Program.
Change history
- 2026/07/28: Original Copy Published
Disclaimer
This document is provided on an "as is" basis and does not imply any kind of guarantee or warranty, including the warranties of merchantability or fitness for a particular use. Your use of the information on the document is at your own risk. EDB reserves the right to change or update this document at any time. Customers are therefore recommended to always view the latest version of this document.