# CVE-2026-50737: EnterpriseDB pglogical superuser privilege escalation via default expressions

Source: https://junglewise.ai/threats/cve-2026-50737-enterprisedb-pglogical-superuser-privilege-escalation-via-default  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-28. Updated: 2026-07-28  
License: CC BY 4.0 with a link back

CVE-2026-50737 · Severity: info · CVSS 9 · Published 2026-07-28

pglogical is a popular extension for PostgreSQL used to replicate data between different database servers. A security vulnerability allows an attacker who can control a data source to execute malicious code on the receiving database with full administrative (superuser) privileges. This could lead to a complete takeover of the database server, including the ability to view, modify, or delete all customer data.

Technologies: [EnterpriseDB Pglogical](https://junglewise.ai/threats/technologies/pglogical). Vendors: [EnterpriseDB](https://junglewise.ai/threats/vendors/enterprisedb).

## Quick answers

**Is CVE-2026-50737 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-50737 being exploited in the wild.

**How severe is CVE-2026-50737?** Informational severity, with a CVSS score of 9, published 28 July 2026.

**Which products and versions are affected?** EnterpriseDB Pglogical 2.x before 2.4.8.

**Is there a fix for CVE-2026-50737?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-50737 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-50737?** Check whether you run EnterpriseDB Pglogical at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A privilege escalation vulnerability exists in pglogical when applying replicated changes for rows missing one or more columns. The subscriber's apply worker evaluates the table's default expressions at a privilege level equivalent to a PostgreSQL superuser. An attacker acting as a publisher can craft a replication stream that triggers these default expressions, executing arbitrary functions with superuser privileges. This attack requires the ability to direct a subscription to an attacker-controlled endpoint, a configuration typically restricted to superusers but often delegated in managed database environments. The issue is fixed in pglogical version 2.4.8.

## Affected products

- EnterpriseDB pglogical 2.x before 2.4.8

## Timeline

- 2026-07-28: disclosed
- 2026-07-28: advisory

## References

- [https://www.enterprisedb.com/docs/security/advisories/cve202650737/](https://www.enterprisedb.com/docs/security/advisories/cve202650737/)

## Related threats

- [EnterpriseDB pglogical use-after-free in worker signaling code](https://junglewise.ai/threats/cve-2026-50738-enterprisedb-pglogical-use-after-free-in-worker-signaling-code)
- [EnterpriseDB pglogical privilege escalation in queue mechanism](https://junglewise.ai/threats/cve-2026-50736-enterprisedb-pglogical-privilege-escalation-in-queue-mechanism)
- [EnterpriseDB pglogical out-of-bounds read in apply worker](https://junglewise.ai/threats/cve-2026-50735-enterprisedb-pglogical-out-of-bounds-read-in-apply-worker)
