OS command injection in repmgr event notifications
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Code execution
- Confidentiality · integrity · availability
- Low · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-78.
Summary
repmgr from 4.0.0 through 5.5.0 is affected by an OS command injection flaw (CWE-78) in its event notifications. When event_notification_command is configured, repmgr places node names and connection strings into the command and runs it through the shell without proper escaping, so shell command substitution still works inside the recommended double quotes. 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 running repmgr or repmgrd, usually postgres, on other cluster nodes that process an event using these placeholders. Deployments that do not use these placeholders are not affected.
Written with Claude Haiku 5.5 from the sources below · 2026-11-11
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| EnterpriseDB | repmgr | 4.0.0 to before 5.5.1 | 5.5.1 | Patch available | CNA |
- repmgr VendorEnterpriseDB Affected 4.0.0 to before 5.5.1 Fixed in 5.5.1 Patch available CNA
Remediation
Upgrade EnterpriseDB repmgr to 5.5.1, which fixes the flaw. After upgrading, remove any quotes placed around the %a, %c and %d placeholders, because a placeholder left inside double quotes remains open to command injection.
Written with Claude Haiku 5.5 from the sources below · 2026-11-11
- Fix · CNA repmgr (EnterpriseDB) Fixed in 5.5.1
Timeline
- 2026-11-11 Threatist record created from CVE-2026-122043
- 2026-11-11 Alias added: GHSA-9jp5-pcg8-5x3c
References
More EnterpriseDB vulnerabilities
- TI-2023-21738 An issue was discovered in EnterpriseDB Postgres Advanced Server (EPAS) before 11.21.32… CVSS 3.1CRITICAL 9.8
- TI-2026-37400 When applying replicated changes for a row that is missing one or more columns, pglogical… CVSS 4.0CRITICAL 9.0
- TI-2026-37399 SQL injection in EnterpriseDB pglogical CVSS 4.0CRITICAL 9.0
- TI-2023-21739 An issue was discovered in EnterpriseDB Postgres Advanced Server (EPAS) before 11.21.32… CVSS 3.1HIGH 8.8
- TI-2026-92263 Incomplete key setup weakens EDB Postgres temporary-file encryption CVSS 4.0MEDIUM 5.6
- TI-2026-63799 WarehousePG pg_file_write/pg_file_rename/pg_file_unlink/pg_logdir_ls privilege escalation CVSS 4.0HIGH 8.7
Sources
- CVE-2026-122043 · CVE Program
- CVE-2026-122043 · NVD
- FIRST EPSS
- GHSA-9jp5-pcg8-5x3c · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences