Skip to main content

pglogical EUVDEUVD-2026-49938

| CVE-2026-50738 HIGH
Use After Free (CWE-416)
2026-07-28 EDB GHSA-7pcx-4vjw-f9pr
7.7
CVSS 4.0 · Vendor: EDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as low-privileged PostgreSQL user
  2. Delivery
    Trigger rapid worker start/stop/restart operations via pglogical functions
  3. Exploit
    Race condition frees worker structure while still referenced
  4. Execution
    Worker dereferences stale pointer
  5. Impact
    Process 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

pglogical 2 <2.4.8

Affected Packages

euvd pglogical fix: 2.4.8

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

Vendor (EDB) PRIMARY 7.7 HIGH
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
vuln.today AI 7.5 HIGH

Network attack, high complexity race condition, low privileges, no UI, complete confidentiality, integrity, and availability impact.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (EDB).

CVSS VectorVendor: EDB

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Jul 28, 2026 - 19:02 EUVD
CVE Published
Jul 28, 2026 - 17:55 cve.org
HIGH 7.7

DescriptionCVE.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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 78% exploitable
Prevalence
Medium
popular PostgreSQL extension for logical replication in many database deployments
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Total

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy