CVE-2026-50737: CWE-250 Execution with Unnecessary Privileges in EnterpriseDB pglogical
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.
AI Analysis
Technical Summary
This vulnerability arises because pglogical's apply worker runs with superuser privileges by default. When applying replicated changes for rows missing columns, default expressions are evaluated on the subscriber with these elevated privileges. If a malicious publisher directs changes invoking functions within these defaults, those functions execute as superuser on the subscriber. This creates a privilege escalation path from a role permitted to use pglogical to full superuser. Exploitation requires control over the subscription endpoint, which generally requires superuser privileges, limiting the risk primarily to managed deployments with delegated subscription creation.
Potential Impact
An attacker with the ability to act as the publisher and direct a subscription to an endpoint they control can escalate privileges on the subscriber to superuser. This can lead to full control over the subscriber database instance. The vulnerability is critical due to the high privileges involved and the potential for complete system compromise. However, exploitation requires specific conditions, including the ability to create or redirect subscriptions, which is typically restricted to superusers in default setups.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict the ability to create or modify subscriptions to trusted superuser roles only. Avoid delegating subscription creation privileges to non-superuser roles in managed environments. Monitor vendor advisories for updates regarding official patches or mitigations.
CVE-2026-50737: CWE-250 Execution with Unnecessary Privileges in EnterpriseDB pglogical
Description
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.
CVSS v4.0
Score 9.0critical
Affected software
EnterpriseDB
pglogical
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability arises because pglogical's apply worker runs with superuser privileges by default. When applying replicated changes for rows missing columns, default expressions are evaluated on the subscriber with these elevated privileges. If a malicious publisher directs changes invoking functions within these defaults, those functions execute as superuser on the subscriber. This creates a privilege escalation path from a role permitted to use pglogical to full superuser. Exploitation requires control over the subscription endpoint, which generally requires superuser privileges, limiting the risk primarily to managed deployments with delegated subscription creation.
Potential Impact
An attacker with the ability to act as the publisher and direct a subscription to an endpoint they control can escalate privileges on the subscriber to superuser. This can lead to full control over the subscriber database instance. The vulnerability is critical due to the high privileges involved and the potential for complete system compromise. However, exploitation requires specific conditions, including the ability to create or redirect subscriptions, which is typically restricted to superusers in default setups.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict the ability to create or modify subscriptions to trusted superuser roles only. Avoid delegating subscription creation privileges to non-superuser roles in managed environments. Monitor vendor advisories for updates regarding official patches or mitigations.
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: 6a68f3759c2644c7f803d87e
Added to database: 07/28/2026, 18:22:45 UTC
Last enriched: 07/29/2026, 14:54:21 UTC
Last updated: 09/10/2026, 20:01:03 UTC
Views: 72
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.