CVE-2026-122043 Details
Description
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.
A command injection vulnerability has been identified in repmgr versions 4.0.0 through 5.5.0, specifically within event notifications. The issue arises because repmgr fails to properly escape node metadata before executing notification commands via the shell. When the 'event_notification_command' is set, repmgr replaces the '%a' (node name), '%c' (connection string), and '%d' (details) placeholders with unescaped values, allowing for shell command injection. This vulnerability can be exploited by an attacker with non-superuser repmgr database credentials, who can manipulate node records to execute OS commands on other cluster nodes, using the privileges of the user running repmgr or repmgrd, typically 'postgres'. The flaw also exists in the '%a' placeholder of the 'failover_validation_command'. However, deployments where the repmgr database user is a superuser, such as those using the repmgr quick start or Trusted Postgres Architect, are not affected, as superusers already have the ability to execute OS commands.
Users should upgrade to repmgr version 5.5.1 or later. After upgrading, it is important to remove any quotes around the '%a', '%c', or '%d' placeholders in the 'event_notification_command', and to remove quotes around '%a' in the 'failover_validation_command', as version 5.5.1 now handles the quoting automatically. Until an upgrade can be performed, users can mitigate the vulnerability by removing the vulnerable placeholders from the notification commands and restricting the repmgr database user's credentials to the cluster hosts.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Nov 11, 2026CISA-ADP
Assessed Nov 17, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/EnterpriseDB/repmgr/releases/tag/v5.5.1 | EnterpriseDB Corporation | Release NotesVendor |
| https://www.enterprisedb.com/docs/security/advisories/cve2026122043/ | EnterpriseDB Corporation | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | EnterpriseDB Corporation |
Affected Products
| Product | Versions |
|---|---|
| repmgr | >= 4.0.0, <= 5.5.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 17, 2026 | CVE Modified | CISA-ADP |
| Nov 11, 2026 | New CVE Received | EnterpriseDB Corporation |
Volerion