CVE-2026-50737
Received Received - Intake

Privilege Escalation in pglogical via Default Expressions

Vulnerability report for CVE-2026-50737, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-28

Last updated on: 2026-07-28

Assigner: EnterpriseDB Corporation

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 Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-28
Last Modified
2026-07-28
Generated
2026-07-29
AI Q&A
2026-07-28
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
2ndquadrant pglogical *
postgresql pglogical to 2026-50736 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-250 The product performs an operation at a privilege level that is higher than the minimum level required, which creates new weaknesses or amplifies the consequences of other weaknesses.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability allows a publisher to escalate privileges to superuser on a subscriber system by exploiting default expressions in PostgreSQL tables when applying replicated changes. The apply worker runs at superuser level, enabling execution of arbitrary functions through default expressions.

Detection Guidance

This vulnerability requires detecting unauthorized superuser privilege escalation via pglogical replication. Check PostgreSQL logs for unusual default expression evaluations or function executions during replication. Inspect subscription configurations for unexpected endpoints controlled by untrusted parties. Review roles with pglogical privileges for suspicious activity.

Impact Analysis

An attacker with subscription creation privileges could gain full superuser access on the subscriber system. This could lead to complete control over the database, data theft, or unauthorized modifications. Exploitation requires the ability to direct a subscription to a controlled endpoint.

Compliance Impact

This vulnerability could lead to unauthorized access or data breaches, violating compliance requirements for data protection. GDPR and HIPAA both mandate strict access controls and data security measures, which this flaw could undermine.

Mitigation Strategies

Immediately revoke non-superuser roles' ability to create subscriptions in PostgreSQL. Review and restrict default expressions on tables involved in pglogical replication to prevent privilege escalation. Monitor for unauthorized subscription creation attempts.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-50737. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart