repmgr 4.0.0 through 5.5.0 is affected by an OS command injection vulnerability (CWE-78) in event notifications.
CVE-2026-122043Published 11 Nov 2026, 16:21 UTC
Real-world risk
0.5/ 10Low
Routine
If the vulnerable configuration applies to you: 1.2
PreliminaryFrom the CVSS vector only · confidence low
CVSS
6.0
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from EDB)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| repmgrNiche | >= 4.0.0, < 5.5.1 | 5.5.1 |
What to do
Update to a fixed version: 5.5.1.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data tamperingWrites or changes important data without gaining execution | From the CVSS vector | 0.70 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | HighAdmin or equivalent | From the CVSS vector | 0.20 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 1.1% chance of exploitation in 30 days (percentile 67), as of 2026-12-05.
The arithmetic
- Prerequisites multiplied together0.090
- Threat T1: Nothing known0.850
- 10 × impact 0.7 × prerequisites 0.09 × threat 0.850.536
- Rounded to one decimal between 0.1 and 100.5
Exploitation and evidence timeline
- 11 Nov 2026 Published
- 3 Dec 2026 Risk 0.5 (cvss fallback)
Weakness
CWE-78