Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privileged PostgreSQL user
-
DeliveryTrigger rapid worker start/stop/restart operations via pglogical functions
-
ExploitRace condition frees worker structure while still referenced
-
ExecutionWorker dereferences stale pointer
-
ImpactProcess crash or code execution with database backend privileges
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must be an authenticated low-privileged PostgreSQL user with the permissions required to perform pglogical operations that influence worker lifecycle (starting, stopping, restarting replication). The vulnerability is only present when the pglogical extension is installed and replication workers are active. Exploitation demands careful timing to win the race condition; no default configuration enables it automatically. |
| Impact | CVSS 4.0 score 7.7 (High) with network attack vector, high attack complexity, low privileges required, and no user interaction. EPSS probability is not available. No KEV listing or public exploit code is identified at time of analysis. The high complexity (race condition) makes widespread exploitation difficult, but the potential for remote code execution elevates real-world risk for exposed databases. The lack of known active exploitation suggests targeted rather than opportunistic attacks, but the combination of low privilege requirement and network accessibility keeps the threat significant. |
| Exploit ScenarioDerived | A low-privileged PostgreSQL user executes a series of allowed pglogical commands to start, stop, and restart a replication worker in rapid succession, creating a race condition where a freed worker structure is still referenced. This causes the worker to crash, and an attacker with precise timing can leverage the use-after-free to execute arbitrary code within the PostgreSQL backend process. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 28, 2026
Remote code execution in pglogical extension for PostgreSQL allows a low-privileged user to crash replication workers, with potential for arbitrary code execution. A use-after-free condition in worker signaling code is triggered during normal replication operations when worker lifecycle events race. While typical effect is denial-of-service, a successful exploit can give complete control of the database backend process.
RemediationAI
Upgrade to a patched version of pglogical as soon as available per the EnterpriseDB advisory (https://www.enterprisedb.com/docs/security/advisories/cve202650738/). If immediate patching is not possible, restrict low-privileged user permissions to prevent start/stop/restart of replication workers, or temporarily disable the pglogical extension. Note that disabling may interrupt logical replication. Monitor worker health for unexpected crashes.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
pglogical is a PostgreSQL extension that implements logical replication using background workers and replication slots. The vulnerability lies in the signaling mechanism that coordinates worker threads; when a worker object is freed or recycled, a stale reference can be dereferenced (CWE-416). The CPE cpe:2.3:a:enterprisedb:pglogical:*:*:*:*:*:*:*:* indicates that all versions are affected. The flaw exists in the PostgreSQL backend process, which runs with the database server’s privileges.
Know when Pglogical gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Network attack, high complexity race condition, low privileges, no UI, complete confidentiality, integrity, and availability impact.
Primary rating from Vendor (EDB).
CVSS VectorVendor: EDB
Lifecycle Timeline
2DescriptionCVE.org
A use-after-free condition exists in pglogical's worker signaling code, where a worker structure can be dereferenced after the underlying slot has been freed or recycled during normal worker lifecycle events. The condition is reachable during normal replication operation, including by a low-privileged user able to influence worker start, stop, and restart timing through permitted pglogical operations. In the typical case the condition crashes replication workers, causing an availability impact. In the worst case a use-after-free in a PostgreSQL backend can be leveraged as a remote code execution primitive at the privilege of that backend.
Articles & Coverage 1
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Privilege escalation in pglogical allows a publisher to execute functions as superuser on the subscriber by exploiting d
SQL injection in pglogical's queue mechanism allows a publisher to execute arbitrary SQL as superuser on the subscriber,
A shell injection flaw was found in pglogical in versions before 2.3.4 and before 3.6.26. Rated medium severity (CVSS 6.
Out-of-bounds read in pglogical's apply worker allows a malicious publisher to disclose adjacent process memory or crash
EUVD-2026-49938
GHSA-7pcx-4vjw-f9pr
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB