
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-50738 is a use-after-free (UAF) vulnerability in pglogical's worker signaling code, developed by EnterpriseDB, where a worker structure can be dereferenced after the underlying slot has been freed or recycled during normal worker lifecycle events. It affects pglogical versions 2.x prior to 2.4.8. The vulnerability was published on July 28, 2026, and a patch is available. It carries a CVSS v4.0 base score of 7.7 (High) (GitHub Advisory, Feedly).
The root cause is a CWE-416 (Use After Free) flaw in pglogical's worker signaling code. During normal replication operations, a worker structure pointer is retained and later dereferenced even after the underlying memory slot has been freed or recycled as part of worker lifecycle events (start, stop, restart). A low-privileged user with permission to perform pglogical operations can influence the timing of these lifecycle events through permitted pglogical API calls, triggering the dangling pointer dereference. The attack vector is network-based, requires low privileges, no user interaction, and no special attack requirements, though high attack complexity is noted due to the timing-dependent nature of the race condition (GitHub Advisory, EDB Advisory).
In the typical exploitation scenario, the use-after-free condition crashes pglogical replication workers, causing a significant availability impact by disrupting logical replication pipelines. In the worst case, the memory corruption can be leveraged as a remote code execution primitive, allowing an attacker to execute arbitrary code at the privilege level of the PostgreSQL backend process. This could result in full confidentiality, integrity, and availability compromise of the affected database system, including unauthorized access to replicated data and potential for lateral movement within the database environment (GitHub Advisory, Feedly).
LOG: worker process: pglogical ... exited with exit code 1 or segmentation fault entries).postgresql.log, particularly correlated with low-privileged user activity.EnterpriseDB has released pglogical version 2.4.8 to address this vulnerability; users should upgrade immediately. As an interim workaround, restrict pglogical operation permissions to trusted, high-privileged users only, limiting the ability of low-privileged users to influence worker start, stop, and restart timing. Full details are available in the EnterpriseDB security advisory (EDB Advisory, GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."