Skip to main content

repmgr EUVDEUVD-2026-123579

| CVE-2026-122043 MEDIUM
OS Command Injection (CWE-78)
2026-11-11 EDB GHSA-9jp5-pcg8-5x3c
6.0
CVSS 4.0 · Vendor: EDB
View

Attack ChainAIDerived

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

  1. Access
    Obtain non-superuser repmgr DB credentials
  2. Delivery
    Write crafted node record to repmgr.nodes
  3. Exploit
    Remote node processes event expanding %a/%c/%d
  4. Execution
    repmgr passes payload to shell
  5. Impact
    Execute OS commands as postgres on cluster node

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires ALL of the following: (1) repmgr/repmgrd is configured with event_notification_command (or failover_validation_command) that uses the %a, %c, or %d placeholders - deployments not using these placeholders are not affected; (2) the attacker possesses valid credentials for a non-superuser repmgr database user with the ability to write node records into the repmgr.nodes table; and (3) a cluster node subsequently processes an event that expands the poisoned placeholder. Key limiting factors: it is authenticated (requires existing DB access), it depends on a non-default command configuration, and it grants no new capability where the repmgr DB user is already a superuser. Note the post-patch caveat: after upgrading to 5.5.1, operators must remove any quotes previously placed around these placeholders, because a placeholder left inside double quotes remains injectable.

Impact

This is a genuine but conditional, moderate-priority issue rather than a drop-everything emergency. The CVSS 4.0 base score is 6.0 (Medium) with vector AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:H/VA:H: network reachable, but it requires existing privileges (PR:H - the attacker must already hold valid non-superuser repmgr database credentials) and carries an Attack Requirement (AT:P) because a separate cluster node must actually process an event that expands the poisoned %a/%c/%d placeholders. The vuln.today decision label is 'this_month', consistent with a serious-but-not-urgent flaw. No EPSS score was supplied, so exploitation probability cannot be quantified. The CVE is not listed in CISA KEV and no exploit or PoC reference is provided, so the status is no public exploit identified at time of analysis - do not treat it as actively exploited. The signals are internally consistent: elevated impact (code execution as the OS user running repmgr/repmgrd) is tempered by the authentication requirement and the non-default dependency on vulnerable placeholders, so real-world risk concentrates on multi-node PostgreSQL HA clusters that both use these placeholders and grant repmgr DB access to non-superusers. Note the limiting nuance the CVSS does not fully convey: deployments whose repmgr DB user is a superuser gain nothing new (a superuser can already run OS commands), and deployments not using %a/%c/%d placeholders are unaffected.

Exploit ScenarioDerived

An attacker holding the credentials of an ordinary (non-superuser) repmgr database user writes a crafted node record into the repmgr.nodes table, embedding shell command-substitution syntax in the node name or connection string. When another cluster node runs its configured event_notification_command (or failover_validation_command) and substitutes the unescaped %a/%c (or quote-only-escaped %d) placeholder, repmgr passes the payload to the shell and executes arbitrary OS commands as the postgres user on that remote node. No public exploit or PoC is identified at time of analysis; the mechanism is drawn from the vendor description.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 1.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 11, 2026

OS command injection in EnterpriseDB repmgr 4.0.0 through 5.5.0 allows an authenticated non-superuser database user who can write node records into the repmgr.nodes table to run arbitrary shell commands, as the OS user executing repmgr or repmgrd (usually postgres), on other cluster nodes that process an event expanding the poisoned placeholder. It only affects deployments where event_notification_command (or the %a placeholder of failover_validation_command) is configured, and it grants no new capability where the repmgr database user is already a superuser. Vendor-released patch: repmgr 5.5.1; no public exploit identified at time of analysis, and exploitation further requires a node to subsequently handle an event that expands %a, %c or %d.

RemediationAI

Upgrade to repmgr 5.5.1, which the release notes describe as containing the security fix that properly escapes values substituted into externally-configured notification commands (https://github.com/EnterpriseDB/repmgr/releases/tag/v5.5.1; advisory https://www.enterprisedb.com/docs/security/advisories/cve2026122043/). The upgrade alone is not sufficient: operators must also remove any quotes they previously placed around the %a, %c and %d placeholders, because a placeholder left inside double quotes remains open to command injection even on the patched release. Where upgrading is not immediately possible, the exposure is removed by not configuring event_notification_command or failover_validation_command with these placeholders - the trade-off is loss of event-driven alerting and failover validation context - or by ensuring the repmgr database user is a non-superuser whose write access to the repmgr.nodes table is restricted, noting that this limits blast radius rather than closing the injection path. No vendor-released patch exists for the 4.x and earlier 5.x branches other than moving to 5.5.1.

Affected VersionsENISA

repmgr 4.0.0 <5.5.1

Affected Packages

euvd repmgr fix: 5.5.1

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

repmgr is a replication and cluster-management tool for PostgreSQL, driven by a repmgr.conf file whose event_notification_command and failover_validation_command entries are template commands executed through the shell with substitutions for %a (node name), %c (connection string) and %d (event details). The root cause is CWE-78: %a and %c are concatenated into the command string without any escaping, and %d escapes only double quotes, so shell command substitution such as $(...) still executes inside the double-quoting the documentation recommends. The node name and connection string are not trusted constants - they are read from node records in the repmgr.nodes table, which is why a database user holding valid credentials but no superuser rights can poison the data and have it interpreted as shell syntax on peer nodes. The same defect applies to %a expansion in failover_validation_command. The assessed vector (CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H) reflects high privileges, the non-default command configuration prerequisite and the cross-component scope shift from the database layer to the operating system. Postgres superusers are unaffected in practical terms because they can already run OS commands.

Know when Repmgr 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 6.0 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 8.0 HIGH

Requires valid non-superuser repmgr DB credentials (PR:H) and a remote node processing a vulnerable placeholder event (AC:H); code executes as the OS user on a different node, crossing authority (S:C) with full OS command execution.

3.1 AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:H/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
Low
Attack Requirements
Present
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Nov 11, 2026 - 17:02 EUVD

DescriptionCVE.org

repmgr 4.0.0 through 5.5.0 is affected by an OS command injection vulnerability (CWE-78) in event notifications. When event_notification_command is configured, repmgr substitutes the %a (node name), %c (connection string) and %d (details) placeholders into the command and runs it through the shell. %a and %c are inserted without escaping, and %d escapes only double quotes, so shell command substitution still works inside the quoting the documentation recommends. The node name and connection string come from node records in the repmgr.nodes table. An attacker with the credentials of a non-superuser repmgr database user can write a crafted node record and run OS commands, as the operating system user that runs repmgr or repmgrd (usually postgres), on other cluster nodes that process an event using these placeholders. The %a placeholder of failover_validation_command has the same flaw. Deployments whose repmgr database user is a superuser gain no new capability, because a superuser can already run OS commands, and deployments that do not use these placeholders are not affected. The issue is fixed in repmgr 5.5.1. After upgrading, operators must remove any quotes they placed around these placeholders, because a placeholder left inside double quotes is still open to command injection.

Threat Intelligence Overview

EPSS Score
1.0%
Top 36% exploitable
Prevalence
Medium
common PostgreSQL HA failover tool, but needs specific multi-node config
Data Quality
5 sources
Confidence: Medium

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 MEDIUM
CISA KEV No
Public POC No
EPSS 1.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

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

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

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